Code example for MapFragment

0
import com.google.android.gms.maps.model.LatLng; 
import com.google.android.gms.maps.model.PolylineOptions; 
import com.seksy.code.trackme.db.DBConstants; 
import com.seksy.code.trackme.db.LocationProvider; 
 
public class MyMapFragment extends MapFragment {
 
  // a polyline to draw on the map 
  private PolylineOptions    poly;
  // the content observer 
  private LocationDBObserver observer;
  // the handler for the content observer 
  private Handler            handler = new Handler();
 
  @Override 
  public void onResume() { 
    super.onResume(); 
    if (observer == null) {
      observer = new LocationDBObserver(handler);
      getActivity().getContentResolver()
Contextual code suggestions in your IDE  Get Codota for Java