Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: How do I totally remove an Activity from the Activity Stack?
    primarykey
    data
    text
    <p>I have two Activities FirstActivity and SecondActivity.</p> <p>FirstActivity has an intent filter MAIN, LAUNCHER and DEFAULT. SecondActivity is just a normal activity and no other flags is set in the AndroidManifest.</p> <p>My application is C2DM enabled and when a notification is received a taskbar Icon is displayed and when clicked it opens SecondActivity.</p> <p>Arrival of Notifications has two scenarios: First, My Application is Already Running when notification arrived and second My Application is totally not running.</p> <p>On the first scenario, everything is fine. A notification is received, i clicked from the notification drop down and my SecondActivity is displayed. When I press back SecondActivity is finished and application goes to the background. When I start my application again from Recent Applications, it displays FirstActivity which is correct since its the MAIN, LAUNCHER and DEFAULT.</p> <p>On the Second Scenario, A notification is received, I clicked it from the notification drop down and my SecondActivity is displayed. When I press back SecondActivity is finished and application goes to the background. When I start my application again from recent Applications, it displays SecondActivity which is wrong. I am expecting FirstActivity to be displayed because it should be a fresh start.</p> <p>I tried ForceKilling the application after the second scenario but the result is the same, I needed to restart my phone to be able to start from FirstActivity Again.</p> <p>Have you guys encountered the same problem? or is it just me? What do you think is wrong with my configuration?</p> <p>I also tried setting noHistory=false to SecondActivity but still the results are the same.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload