android - Problems manipulating FragmentTransaction backstack -


in app have several fragments using v4 support library. i'm trying use backstack fragmenttransaction class appears missing backstack methods. example:

fragmenttransaction transaction = getsupportfragmentmanager( ).begintransaction( ); transaction.setcustomanimations( r.animator.enter, r.animator.leave, r.animator.enter, r.animator.leave ); <other stuff> transaction.popbackstackimmediate( "fragment_1", 1 ); 

gives error messsage

the method popbackstackimmediate(string, int) undefined type fragmenttransaction 

even fragmenttransaction.pop_back_stack_inclusive constant not defined.

btw: have installed file android-support-v13.jar according http://developer.android.com/training/basics/fragments/support-lib.html. i've tried android-support-v4.jar , got same results.

you want fragmentmanager, not fragmenttransaction. fragmentmanager has popbackstackimmediate method constant mention.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -