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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -