Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android application current activity bring to front issue

I have a basic question for which I don't think attaching any code-snippet may help. When we press home button while an app is in front we go to the home page and the app loses its focus.

Now, My application has to have notification icon in the status bar. And as in my application, there is a possibility of having 2-3 activity visible(one above another in dialogue view). In certain situation, I am not really sure as to how could I resume such state when I press notification icon in the status bar.

But, when I press home button and then press the application icon in the home screen I get everything as expected.

So, is there any way, by which I can do the same with notification bar icon.

like image 996
Rizwan M.Tuman Avatar asked Jul 13 '12 12:07

Rizwan M.Tuman


1 Answers

There are 2 ways of doing this:

  1. Notification to restore a task rather than a specific activity?

  2. Resume application and stack from notification

like image 65
David Wasser Avatar answered Oct 22 '22 04:10

David Wasser