DKerkman
DKerkman

Reputation: 53

Dialog floating on top of activity

Screen capture

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

Upvotes: 1

Views: 809

Answers (1)

DKerkman
DKerkman

Reputation: 53

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

Upvotes: 1

Related Questions