clear FragmentManager Stack - Android User Interface

Android examples for User Interface:Fragment

Description

clear FragmentManager Stack

Demo Code


//package com.java2s;

import android.support.v4.app.FragmentManager;

public class Main {
    public static void clearStack(FragmentManager fragmentManager) {
        fragmentManager.popBackStack(null,
                FragmentManager.POP_BACK_STACK_INCLUSIVE);
    }/*from   w  w w .jav  a2s. c  om*/
}

Related Tutorials