Wednesday, August 29, 2012

Re: [android-developers] Custom Activity Loading in Dalvik

There is a proper way:

don't do this and instead use an intent with another program on the
phone. Class loading is sometimes "the only way," but for your case
it's almost certainly a bad idea.

(By the way, using this should be considered extremely dangerous and
hacky, and avoided if at all possible..)

kris

On Wed, Aug 29, 2012 at 11:43 AM, rk <ramakrishnarao5@gmail.com> wrote:
> http://android-developers.blogspot.in/2011/07/custom-class-loading-in-dalvik.html
>
> This link refers loading of classes from Second Dex, this is working fine
>
> Instead of calling a simple method available in Second Dex,
> I tried to add an activity in Second dex, and Tried to access from my
> MainActivity,
> I'm getting Classnotfound error when I try to access/start the activity
> using startActivity() from My MainActivity
>
> I also tried using PathClassLoader - its also showing same error
>
> Can we access/load that Activity present in Second Dex from MainActivity?
>
> What it the proper way to keep activities in multiple Dex file?
>
> Thanks in Advance
>
> --
> 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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment