I have Activity that download a file in progress dialog. And when user press to the button “hide” activity creates notification and hide progress dialog. And when user click to the notification, activity showing progress dialog in the activity again. How could I switch activity to the back task on pressing to the button “Back”?
Share
What you need to do is to call
finish()to remove theActivityfrom the stack.Then in your notification, you set the name of the
Activityto be called when you click on it, something like this: