隐藏APK在Launcher中的启动图标 android开发教程

隐藏APK在Launcher中的启动图标:

APK的AndroidManifest.xml文件的主Activity中删除 intent-filter 中的

<category android:name="android.intent.category.LAUNCHER" />即可。

查看该APK是否安装成功:

查看Settings -> Apps -> All的应用程序列表

启动该APK方法:

Intent intent = new Intent(Intent.ACTION_MAIN);

intent.setComponent(new ComponentName("com.my.demo","com.my.demo.MainActivity"));

intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(intent);

原文地址:https://www.cnblogs.com/zhujiabin/p/5213762.html