简体   繁体   English

清除最近的应用程序(长按主页按钮时)

[英]Clear recent apps(when long click home button)

Is there a way that I can clear the recent apps? 有什么方法可以清除最近的应用程序?

to simply clear the list. 简单地清除列表。

I have tried looking for some answer and I found one but it didn't work. 我尝试寻找一些答案,但找到了一个答案,但是没有用。

After some research i understand you cannot clear recent apps because REMOVE_TASKS permission can be used only by system/ROM developers. 经过一番研究后,我了解到您无法清除最新的应用程序,因为REMOVE_TASKS权限只能由系统/ ROM开发人员使用。

The only way that would work is to flood the recent tasks with blank activities but you said it isn't your case. 唯一可行的方法是用空白活动填充最近的任务,但是您说的不是您的情况。

Final: You cannot do what you want! 最终:您无法做自己想做的! Only system can do it. 只有系统才能做到。

Some questions: 一些问题:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 禁用后面,最近的应用程序按钮,电源按钮,家庭和家庭长按按钮 - Disable the back,recent apps button , power button, home and home long press button 在android中处理最近的应用程序点击和主页按下 - Handle Recent apps click and home press in android 如何长按主页,后退或最近的应用程序按钮打开我的Android应用程序? - How to open my Android app on a long press of home, back or recent apps button? 按下最近的应用程序按钮时清除EditText - Clearing an EditText when the recent apps button is pressed 按主页/最近按钮打开微调器时应用程序崩溃 - App crashes when spinner is opened on press of home/recent button 当我们点击主页按钮时停止 CountDownTimer - Stop CountDownTimer when we click on the home button 以编程方式隐藏 Android 应用程序中的主页和最近按钮 - Hide Home and Recent Button in Android App Programatically 当点击“提交”按钮时,它应该重定向到 Android Studio 的主页 - when click on “Submit” Button it should redirect to home page in Android Studio 当我单击主页 GUI 上的按钮时会打开一个空白的 GUI - A blank GUI opens when i click the button on the home GUI Android:从最近使用的应用程序按钮关闭应用程序时未调用OnDestroy - Android: OnDestroy isn't called when I close the app from the recent apps button
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM