Hello, through notification, I open the activity, but not the application itself. when you click on the button in activity, activity closes. how after closing activity open applications on the desired fragment?
- oneWhat does it mean "I open the activity, but not the application itself"? Activity is part of the application. - Yuriy SPb ♦
- Yes, but the application is in the ondestroy state. I start the timer in the timer activity, it turns out the notification.
- Nothing is clear. What prevents you from opening a fragment instead of closing the actitity? .. - YuriySPb ♦
- I have a timer activty there is a service timer. I start the timer notification displayed. Now I have closed the applications, but after clicking on the notification I get to the timer activity. The application itself is still closed. when the timer is stopped, the activation closes. in the end, my activity and fragment is closed - David Kern
- Well ... Pass something through the launch launch from the notification and, if there is something in the intention in activation, then do not start / stop the timer ... - Yuriy SPb ♦
|