I had a problem with com.here.android.mapping.MapFragment when trying to use it with tabs.
The problem is that since TabActivity is deprecated (I know that it still works, but it needs further proof), and FragmentTabHost seems to require the use of the v4 fragment (it crashes if the fragment is obtained from another), then when I try to use com.here.android.mapping.MapFragment used in the layout of one of the tab fragments, then I cannot get it for the required initialization, because (MapFragment) getFragmentManager (). findFragmentById () has an error indicating that casting in MapFragment could not be performed.
I assume the problem is that the MapFragment is derived from android.app.Fragment and findFragmentById is waiting for the mix to return android.support.v4.app.Fragment, so the question will be, how can I get this mixture to work seamlessly together?
source
share