Android在一个app中启动另一个App

Posted 段合江

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android在一个app中启动另一个App相关的知识,希望对你有一定的参考价值。

        Intent intent = new Intent(Intent.ACTION_MAIN);
             intent.addCategory(Intent.CATEGORY_LAUNCHER);
             ComponentName cn = new ComponentName("com.example.timer", "com.example.timer.MainActivity");//包名,类名
             intent.setComponent(cn);
             startActivity(intent);

 

以上是关于Android在一个app中启动另一个App的主要内容,如果未能解决你的问题,请参考以下文章

Android在一个app中启动另一个App

4) 十分钟学会android--建立第一个APP,启动另一个Activity

Android-启动另一个app

Android Studio 自己app启动另一个app 启动别的应用 启动自己的另一个app 启动自己的另一个应用 启动其他应用 解决方法

新 Android在一个APP中通过包名或类名启动另一个APP

新 Android在一个APP中通过包名或类名启动另一个APP