nokia - How to mix android.support.v4.app.Fragment and android.app.Fragment -
i'm having problem com.here.android.mapping.mapfragment when trying use tabs.
the issue comes since tabactivity deprecated(i know still works, need future proof solution), , fragmenttabhost appears requiring v4 fragment used (it crashes if fragment derived other one) , when try having com.here.android.mapping.mapfragment used in layout of 1 of tab fragments, can not retrieve required initialization, since (mapfragment) getfragmentmanager().findfragmentbyid() line has error indicating casting mapfragment can not made.
i suppose issue mapfragment derived android.app.fragment , findfragmentbyid expects return mix android.support.v4.app.fragment, question on how mixture run smoothly ?
the android.support.v4.app.fragment
, android.app.fragment
classes can't used interchangeably.
nokia have created com.here.android.mapping.mapcompatibilityfragment extends android.support.v4.app.fragment
- use instead if app uses support fragments.
Comments
Post a Comment