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"?
If you don't destroy your activity you must set acitvity launch mode to single_instance
and use moveTaskToBack(true)
to send to background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With