I have a snippet in activity that I use as a navigation box. It contains buttons that, when pressed, start new actions (startActivity from a fragment simply calls startActivity for the current activity).
In my life, I canβt understand how to finish the current activity after starting a new one.
I want to achieve something similar in the fragment:
@Override public void onClick(View view) {
But it seems that Fragment.class does not implement finish () (for example, it implements startActivity (...)).
I would like the backstack activity to clear when the 2nd action starts. (so rolling back from a new activity will technically drop them back to the launcher)
android
NPike Oct 26 '11 at 19:37 2011-10-26 19:37
source share