android - Fragment counterpart of getSupportFragmentManager -


is there counterpart of getsupportfragmentmanager fragments? or fragmentactivity?

i have this

adapter = new mypageradapter(this, this.getsupportfragmentmanager()); 

that goes here

public mypageradapter(topfrag context, fragmentmanager fm) {} 

fragment has method getfragmentmanager() returns fragmentmanager.
do:

adapter = new mypageradapter(this, this.getfragmentmanager()); 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

.net - How to detect a double-click outside of vb.net form -