I have a notifications in my app with Pending intent set. When I use my application i move in several activities. Login -> Main Screen -> About etc. I want to restore my application to foregrownd but I don't know which is the current activity to set it class in Intent constructor. I want to restore it from the notifications. to be a way to back to app if opened and opened again if closed,because notifications comes from Service.
I want to bring back the activity which is was on top when user bring it to back. in other words i want to simulate the behaviour -> back to home screen of device [ in this time app is run but is in background] and if click on app icon .. the application restores last activity/ bring it to front where i am when click home button but to do this also from notification
Is there a way to do this?
Thanks