且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从另一个应用程序启动一个Android应用程序

更新时间:2022-02-25 22:16:14

使用一个意图:的 http://developer.android.com/guide/topics/intents/intents-filters.html

使用Context.startActivity()刚刚推出,或者如果你想要得到的结果,当它完成Activity.startActivityForResult()。

Use Context.startActivity() to just launch, or Activity.startActivityForResult() if you want to get a result when it's done.

如果您是紧耦合与其他应用程序,你可以使用一个明确的意向。否则,发送一个隐含的意图。

If you are tightly coupled with the other application, you can use an explicit Intent. Otherwise, send an implicit Intent.