Android call method from another app

后端 未结 4 990
有刺的猬
有刺的猬 2020-12-08 23:56

I have 2 android apps. Both are installed on the phone. Lets say the package name for the two are com.android.test1 and com.android.test2. How can i call the method M

4条回答
  •  余生分开走
    2020-12-09 00:07

    You cannot directly call a method of one app from another app. Instead, you have to invoke one activity from another and fetch result using Intent filters.

    These links might help you

    http://www.vogella.com/articles/AndroidIntent/article.html

    http://saigeethamn.blogspot.in/2009/08/android-developer-tutorial-for_31.html

提交回复
热议问题