Intent intent = new Intent(Intent.ACTION_MAIN);
ComponentName com = new ComponentName(
"com.android.otherapk", //要打开的程序的包名
"com.android.otherapk.otherAcivity" //程序中入口MainActivity,在Mainifent.xml查看
)
intent.setComponent(com);
StartActivity(intent);

解决方案 »

  1.   

    这个我也有点疑问,如果另外一个应用是我写的我可以看到入口activity是那个,但是如果这个应用不是我写的呢,我靠什么来判断那个是入口呢?
      

  2.   

    只能用winrar之类的工具先查看一下要打开的程序package,Main Activity。
      

  3.   

    Intent intent = new Intent();
    intent.setPackage("com.dashan.game");
    这样也可以