简体   繁体   English

如何仅显示最近使用的应用列表中的主要活动?

[英]How to show only the main activity in the recent apps list?

When I minimize my app I can see the last visited activity in the recent apps list, is there a way to change this behaviour to show only the screen shot of the main activity regardless to the last active activity? 当我最小化我的应用程序时,我可以在最近使用的应用程序列表中看到上次访问的活动,是否可以更改此行为以仅显示主要活动的屏幕快照,而不管上次活动的活动如何?

Basically I want to see a screen shot of my main activity in recent apps and when I tap on it I need to be redirected to the main activity. 基本上,我想在最近的应用程序中看到我的主要活动的屏幕截图,当我点击它时,我需要重定向到主要活动。

您可以在其他活动中覆盖onResume()方法,并在其中放置调用Main活动的代码。

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

相关问题 如何在完成时从最近的应用列表中删除活动? - How to remove activity from recent apps list on finish? 当我的应用程序在“最近使用的应用程序”列表中时,如何启动特定活动? - How to Launch specific activity when my Application is in Recent Apps List? 如何仅在主要活动中显示菜单? - How to only show the menu in the main activity? 如何在最近的应用程序列表中显示我的应用程序和浏览器是作为意图启动的? - How to show my app and browser launched as an intent in the recent apps list? 活动会从最近的应用列表中删除该应用 - An Activity removes the app from recent apps list 从最近的应用列表中排除活动 - Exclude activity from recent apps list 从窗口小部件启动时,活动未显示在最近的应用列表中 - Activity not showing in list of recent apps when launched from a widget 从NFC启动的活动/应用程序永远不会出现在最近的应用程序列表中 - Activity/Application Launched From NFC Never Appears in Recent Apps List Android-从操作系统的应用程序“最近使用的应用程序”列表中启动的活动 - Android - Activity launched from the OS's app recent apps list 如何在ICS的最新应用列表中显示应用? excludeFromRecents不起作用 - How to not show app on recent apps list in ICS? excludeFromRecents doesn't work
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM