Hi all.
I have a toolbar view set for most of my activities.
The toolbar has several buttons which all trigger certain intents.
Now, the problem is:
how can I close current activity before starting another one ?
Problem 1) Activity cones
For instance one of the buttons ('A') starts activity A.
Activity A also has toolbar.
If you press on the 'A' button, a new A activity will be started.
I suppose I can look at Activity.getInstanceCount(), right ?
Problem 2) Unnecessary activities
The activity X is not needed any more if the opts for A. I just want A
then.
How can I remove X from toolbar which only has access to context ?
I, of course could find toolbar view inside activity X and override
the onClicks, but in general this would mean doing so for all my
activities !?
Am I on the right track ?
--
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