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

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -