Code example for SupportMapFragment

0
 
import java.util.Dictionary; 
import java.util.Hashtable; 
import java.util.List; 
 
public class MapFragment extends SupportMapFragment implements TagInfoAsyncListListener, GoogleMap.OnInfoWindowClickListener {
 
    private static final int EDIT_DETAILS_REQUEST = 1;
    private Dictionary<String, TagInfo> mMarkerDict;
 
    @Override 
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        mMarkerDict = new Hashtable<String, TagInfo>();
        getMap().setOnInfoWindowClickListener(this);
        addMarkersFromDatabase(); 
    } 
 
    private void addMarkersFromDatabase() { 
        DatabaseHelper db = DatabaseHelper.getInstance(getActivity());
Stop searching for code, let great code find you!  Add Codota to your java IDE