[英]Show app view on top of all other apps Android
I have an app which enables users to set tasks with specific time deadlines. 我有一个应用程序,使用户可以在特定的时间期限内设置任务。 Once a deadline is passed, I want the app to show a view on top of everything (requesting the user to update the task). 一旦截止日期过去,我希望该应用程序显示所有内容的视图(请求用户更新任务)。
My issues are: - how to show my app's view on top of every other activity that is currently active - how to keep the activity on top until the user updates the task? 我的问题是:-如何在当前处于活动状态的所有其他活动之上显示应用程序的视图-如何在用户更新任务之前将活动保持在首要位置?
Is using something like SYSTEM_ALERT_WINDOW look sensible? 使用类似SYSTEM_ALERT_WINDOW的东西看起来明智吗?
您可以尝试创建一个透明的活动,将其打开并显示警报对话框。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.