Hi,

Here my case :
 I have got an application, that use several activities [A,B].
The A and B activity can be called several times.
 the A and B activity can call a new A or B activity.

When the user press "BACK" I want him to come back directly to the
home screen.

My Solution [Works] :
Each time, I start an activity through a new Intent, I close the
previous with finish.
I mean I am in activity A.
          A.this.startactivity(A or B)
          A.this.finish()

My Question :
What is the best solution ? Is there better solutions using specific
task ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to