On Jun 25, 11:22 pm, Hsun-Cheng Hu <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Is it possible to load class dynamically from file system or
> Internet??
With a bit of work loading from the file system is barely possible.
Loading from any other source is not possible in the current public
release of the development tools.
Read the discussion topics, "Dynamic Class Loading in Android" and
"Creating java bytecode at runtime".
> I found all classes are pack into a dex file. I had tried to use
> "URLClassLoader" to load the "dex" file, but it failed.
You'll find that ClassLoader's defineClass(...) methods all fail. The
known workarounds rely on undocumented classes, meaning Google could
change their code in a way that breaks the workaround.
> any idea??
Wait, along with the rest of us losers (Google provided Challenge
winners special access to updated SDK releases), for Google to hand
down from on high an updated SDK. Last I heard, we should not expect
Google to release an updated SDK for quite a few months.
> Hsun-Cheng Hu
Bob
--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---