Android examples for User Interface:Fragment
pop Back Stack Inclusive
import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; public class Main{ private static final String TAG = FragmentHelper.class.getSimpleName(); public static void popBackStackInclusive(FragmentManager fragmentManager) { if (fragmentManager != null) { try { fragmentManager.popBackStackImmediate(null, FragmentManager.POP_BACK_STACK_INCLUSIVE); } catch (IllegalStateException e) { // ignore Logger.w(TAG, e); }/*w ww. j a va 2s . c o m*/ } } }