简体   繁体   中英

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);

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="" 

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.

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