如何启动从Android的另一个应用程序的应用程序?

如何启动从Android的另一个应用程序的应用程序?

问题描述:

可能重复:
  入手一部Android应用程序从其他应用

我们正在开发一个Android应用程序让说 com.example.helloone 和其他Android应用程序 com.test.hellocalled 。这里都是两个不同的包,我要打电话从 com.example.helloone com.test.hellocalled 应用>。可你建议有关一样吗?

We are developing an android application let say com.example.helloone and another android application com.test.hellocalled.Here both are two different packages,i want to call com.test.hellocalled application from com.example.helloone.Can you suggest regarding same?

在你的活动,你可以使用

In your activity, you can use

if(isAppInstalled("com.other.package"))
{
    Intent nextIntent = new Intent(Intent.ACTION_MAIN);
    nextIntent.setComponent(new ComponentName("com.other.package","com.other.package.Activity"));
    startActivity(nextIntent);
}