Code example for SupportMapFragment

0
 
/** 
 * A workaround to provide actionbar menu 
 *  
 */ 
public class SherlockMapFragment extends SupportMapFragment implements
		OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, 
		OnOptionsItemSelectedListener { 
	 
	private SherlockFragmentActivity mActivity;
 
    public SherlockFragmentActivity getSherlockActivity() { 
        return mActivity;
    } 
     
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        AnalyticsUtils.setContext(getActivity()); 
    } 
 
    @Override