Code example for SupportMapFragment

Methods: getActivity, getLoaderManager, onCreate

0
        return new PlaceMapFragment(); 
    } 
 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.activity = (EatmeActivity) getActivity();
        getLoaderManager().initLoader(0, null, this);
    } 
 
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        if (getArguments() != null) { 
            this.placeReference = getArguments().getString(EatmeConstants.EXTRA_KEY_REFERENCE);
            this.placeId = getArguments().getString(EatmeConstants.EXTRA_KEY_ID);
        } 
        return super.onCreateView(inflater, container, savedInstanceState);
    } 
 
    @Override 
    public Loader<Cursor> onCreateLoader(int i, Bundle bundle) {