这个可以  用android 任务中app 隐藏起来

 

 

android属性之clearTaskOnLaunch

此属性是 每次启动app时都会进入 根目录中      android:clearTaskOnLaunch="true"  此属性必须设在 根目录中才有效

 

 

android隐士意图 之
<intent-filter>
<action android:name="tag"></action>
<category android:name="android.intent.category.DEFAULT" />
Intent intent = new Intent();
intent.setAction("tag");
startActivity(intent);


此为隐士意图
setAction  和   <action android:name="tag"></action>  注意


android  FLAG_ACTIVITY_NEW_TASK 和 taskAffinity    
开启新任务栈

intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  此为必须加
android:taskAffinity=".ssss"  为必须加的  注意 要以 .开头 哦





相关文章:

  • 2021-11-11
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2021-10-19
  • 2021-10-20
猜你喜欢
  • 2021-09-29
  • 2022-12-23
  • 2022-02-17
  • 2021-11-29
  • 2022-12-23
  • 2021-06-13
  • 2021-11-16
相关资源
相似解决方案