Tuesday, July 13, 2010

[android-developers] Running an application that is not installed on Android

I'm trying to load and run an Android application that is not
installed, so I have been reading Android source code to find if it
will help me to do it.


What I reached some calls that I "think" might do the jop:


new Instrumentation().newApplication(Class, Context)

and to create an ApplicationContext
there is ApplicationContextObject.init(Resources, ActivityThread)
to get Resources I used DexClassLoader to load the not installed .apk

next I want to create an ActivityThread object
and the code is there is huge and I enter into lots of other classes
and get lost


would someone help me and say if I'm going in the right way? and if so
how to create ActivityThread?
I fear that there would be a simple solution that I can't see

--
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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate