简体   繁体   English

对话框浮动在活动顶部

[英]Dialog floating on top of activity

屏幕截图

I have a very simple widget that allows the user to reconfigure the widget and select a new note. 我有一个非常简单的小部件,它允许用户重新配置小部件并选择新的注释。 If I had previously opened my activity and I hit the home button then click the configure button it will reopen my application with the dialog floating on top. 如果我以前已经打开活动,然后单击主页按钮,然后单击配置按钮,它将重新打开我的应用程序,并且对话框顶部浮动。 I have tried to clear top flag but it does not seem to work. 我试图清除最高旗帜,但似乎无法正常工作。 Has anyone else seen this before or have an idea of what I am missing? 有没有其他人以前见过这个,或者对我想念的东西有一个想法?

setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

I finally found a similar post. 我终于找到了类似的帖子。 Sorry about the duplicate. 对不起,重复。 If anyone else is having this issue visit this link: 如果还有其他人遇到此问题,请访问此链接:

Relaunching my Widget Configuration Activity launches my App in Background 重新启动我的窗口小部件配置活动会在后台启动我的应用程序

android:allowTaskReparenting="false"
android:taskAffinity="" 

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM