Is there any way to cast android v4 supportFragment to android fragment? -


i did:- extends activity class in class.

  fragmentmanager fragment=(fragmentmanager)getsupportfragmentmanager(); 

but give error.

you can't cast between these 2 classes, suppose compile errors because importing wrong fragmentmanager.

getsupportfragmentmanager returns fragmentmanager class , importing this


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -