开发者

How can I call a method of one apk from another apk in android

I have a requirement where there is a first apk say APK1. From开发者_JAVA技巧 here I want to call a method of second apk, means APK2. Is it possible to do this? If so kindly help....


If all the APKs are signed with the same certificate, you can use the method outlined in this answer:

Android: how to share code between projects signed with the same certificate


This is not exactly what you are asking, but it might be what you really want. If you have two applications and wish to communicate between them (run second app's Activity from the first one), use Intents. This is what they are for.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜