Hello everyone,

is there an easy way for reflection of classes in other packages that
are currently installed on the device? Class.forName() obviously
doesn't work since the classes are not on the static classpath. I've
tried it via the Context.createPackageContext("packagename") method
which successfully creates the context of the foreign package. But the
attempt to load the class with getClassLoader().loadClass() called on
the context-pointer fails with a ClassNotFoundException. I've stumbled
across a solution on the Internet, where classes were loaded over
their .dex-Classfile (http://blog.luminis.nl/roller/luminis/entry/
osgi_on_google_android_using). Is this the only way of using
reflection on classes in other packages installed on the device?

Thx in advance,

Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to