I have a app that sets the main Actvity as the main launcher. How can I prevent my current foreground Activity from closing whenever I press the Home Button which calls the background activity from the bottom of the stack. Is there a way to trap the intent and allow the the foreground ativitiy to finish. My manifest has the following:
android:launchMode="singleTask"
公共API内无法以您希望的方式“覆盖”主页按钮。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.