You really don't want to do this, it won't work (because Dalvik is not something that takes a jar) and is horrible security practice.
In general, you should always be very skeptical when you run code you got from somewhere else: big security problems pop up. Kris On Tue, Jan 8, 2013 at 2:10 PM, Kevin Duffey <andjar...@gmail.com> wrote: > couldn't you download a jar or class file other ways then use this to load > it? > > On Jan 8, 2013 9:19 AM, "Mark Murphy" <mmur...@commonsware.com> wrote: >> >> You mean, besides the fact that URLClassLoader doesn't work with >> Dalvik files (AFAIK) and that loading a library directly from the >> network is totally insecure? >> >> On Tue, Jan 8, 2013 at 12:12 PM, Jan Burse <janbu...@fastmail.fm> wrote: >> > Dear All, >> > >> > I am just read: >> > >> > Provides a simple ClassLoader implementation that operates >> > on a list of files and directories in the local file system, >> > but does not attempt to load classes from the network. Android >> > uses this class for its system class loader and for its >> > application class loader(s). >> > >> > >> > http://developer.android.com/reference/dalvik/system/PathClassLoader.html >> > >> > Does this mean I cannot use the URLClassLoader on Android with >> > URLs that have for example the schema http:// ? >> > >> > Bye >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Android Developers" group. >> > To post to this group, send email to android-developers@googlegroups.com >> > To unsubscribe from this group, send email to >> > android-developers+unsubscr...@googlegroups.com >> > For more options, visit this group at >> > http://groups.google.com/group/android-developers?hl=en >> >> >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Localized Android Question-and-Answer Sites: http://www.andglobe.com >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en