java - Activities and their lifecycle -


consider this:

  • activity a
  • activity b

  • activity c

activity started when clicking on launcher icon. activity b started activity - nothing special. activity c should started app (not on click or similar ), broadcast.

the problem:

when activity c started app automatically, , when press home button on activity, , when click on lanuncher icon (to show main activity - ), shows me activity c. if press button on activity, can go activity a, no problem.

how solve issue? killing activity c, on home button press, or other way this?

in manifest of activity put android:launchmode="singletask" android:cleartaskonlaunch="true" , in rest of activities put android:cleartaskonlaunch="false", solve problem. hope you.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -