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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -