Code example for SupportMapFragment

Methods: onAttach

0
            throw new IllegalStateException(getClass().getSimpleName()
                    + " must be attached to a SherlockFragmentActivity."); 
        } 
        mActivity = (SherlockFragmentActivity) activity;
 
        super.onAttach(activity);
    } 
     
     
    @Override 
    public void onStart() { 
        super.onStart(); 
        AnalyticsUtils.activityStart(getActivity()); 
    } 
 
    @Override 
    public void onStop() { 
        super.onStop(); 
        AnalyticsUtils.activityStop(getActivity()); 
    }