i have a fragment with a tab layout , so i slide to get into my map, when i get there it just opens the map but the markers dosnt show, my MapActivity
is working good with the markers if i run it in a single activity, but how i can call the entire class in my tab layout fragment, here is what im doing
else if(getArguments().getInt(ARG_SECTION_NUMBER) == 3) {
if(view3 == null) {
// View rootView = inflater.inflate(R.layout.activity_maps, container, false);
// view3 = rootView;
View v = inflater.inflate(R.layout.activity_maps, container, false);
mMapView = ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.map));
mMapView.onCreate(savedInstanceState);
mMapView.onResume();// needed to get the map to display immediately
try {
MapsInitializer.initialize(getActivity().getApplicationContext());
} catch (Exception e) {
e.printStackTrace();
}
return v;
} else {
return view3;
}
it seems like it only opens the activity_maps
but it dont open my MapsActivity.class
entirely
this is what i get
thanks