Code example for SupportMapFragment

Methods: getMap, onViewCreated

0
 
    /** 
     */ 
    @Override 
    public void onViewCreated(View view, Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
 
        if (getMap() != null) {
            onSetUpGoogleMap(getMap());
        } else { 
            Log.e(TAG, "Failed to create valid google map.");
        } 
    } 
    /** 
     * Getters + Setters --------------------- 
     */ 
 
    /** 
     * Protected ----------------------------- 
     */