I am sure this is easy, but can't find solution for this.

My app structure is something like this:

HomeActivity > subActivity > subSubActivity > subSubSubActivity
On each activity (except home) in top left corner I have Home Icon
which creates new Intent and starts home activity with StartActivity.

What's happening:
1) I am on home
2) Lunch subActivity
3) Lunch subSubAcitivity
4) Press Home button
5) On home
6) Press Back Key
7) I am on subSubActivity   (I would like to exit app here)

Is it possible to delete "history" when on home activity?

I tried to fix it with executing finish() before starting Home
Activity (in step 4), but in that case Back button will take me to
subActivity (which was running before). So, basically I want Back
button to work on all activities as intended except on Home activity?

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to