PopBackStack in android fragment -
i have 3 fragment a,b,c. transaction like: -> c,b -> c.
- with -> c, use following code
fragmenttransaction.addtobackstack("a tag");
- and b -> c, use
fragmenttransaction.addtobackstack("b tag");
in fragment c, press button use: fragmentmanager fm = getactivity().getsupportfragmentmanager(); fm.popbackstack();
now met problem when press back: c->b->a->exit want on fragment or b,press exit app immediately. please give me idea! in advance!
Comments
Post a Comment