Add marker to google maps v2, where the map is added programmatically

view story

http://stackoverflow.com – So I am trying to implement google maps v2 for my android application. I have successfully added a map to my application using the code below. I have also added the code for the layout. I dont want to change this implementation as I have a tabular view and the map is one of the tabs. Do you have any suggestions on what I can do. mMapFragment = MapFragment.newInstance(); mMapFragment.getMap().addMarker(new MarkerOptions().position(new LatLng(0, 0)).title("Hello world")); android.app.FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction(); fragmentTr (HowTos)