basically my app has 2 activities.Say \"A\" and \"B\" . A launches B.
Activity B plays music and also has a notification.
Case 1:when the view is still on activi
Basically if you have pressed a back button,restoration of activity should be done using shared preferences/or a database
but if you haven't pressed the back button and then you want to restore the state of the activity (because the activity was destroyed by the system ) then the bundle savedinstances
can be used ...