Android, How Can I Use External Apk In My Application?
Solution 1:
You can't do this from Eclipse. test.apk needs to be installed, and it needs to export the activity you need and have an intent filter for it. Something like:
<intent-filter><actionandroid:name="com.infindo.test.MainActivity" /><categoryandroid:name="android.intent.category.DEFAULT" /></intent-filter>
If you have access to test.apk's source, modify it. If not, you can only use the activities/intents it exports.
Solution 2:
To start an activity with an explicit intent like you are doing (by using the activity class in the constructor), the activity must be declared in the manifest for your app and must be complied into your app. You cannot use a separate apk file for that.
The way to do what you want is to declare an intent filter for the activity in test.apk and to launch it using an appropriate intent. See the guide topic Intents and Intent Filters and the documentation for the Intent class for more information about how to do this.
Post a Comment for "Android, How Can I Use External Apk In My Application?"