隐藏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);

相关文章:

  • 2021-12-26
  • 2021-12-29
  • 2021-09-25
  • 2021-04-19
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2021-10-22
相关资源
相似解决方案