Developing two android apps and communicating between two

↘锁芯ラ 提交于 2019-11-28 06:34:07

You cannot directly access methods of Activity in different app.

Broadcast would work but if you want more control (i.e. invoke remote methods) consider binding to a remote service in the other app or use Messenger and handler to communicate.

Here is a short tutorial on inter-app communication

Badr Ghatasheh

You can't share methods and code segments between different applications, but you can use intents to send data bundles back and forth, check this similar question:

android communication between two applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!