Reputation: 53
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
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