Code example for FragmentActivity

Methods: getSupportLoaderManager, onResume

0
        Log.w(this.getClass().getName(), "SIS called");
    } 
     
    @Override 
    public void onResume() { 
    	super.onResume(); 
    	 
        mLocationMgr.requestLocationUpdates(GPS_LOCATION_PROVIDER, 0, MIN_NOTIFICATION_DIST, mLocationListener);
        mLocationMgr.requestLocationUpdates(NETWORK_LOCATION_PROVIDER, 0, MIN_NOTIFICATION_DIST, mLocationListener);
         
        updatePhotos(); 
    } 
     
    @Override 
    public void onPause() { 
    	super.onPause(); 
    	 
    	mLocationMgr.removeUpdates(mLocationListener);
    } 
     
    /* -- Photos/Content methods -- */ 
     
    private void updatePhotos() { 
    	getSupportLoaderManager().destroyLoader(mLoaderId);
        getSupportLoaderManager().initLoader(mLoaderId, null, this);
        mLoaderId++;
    } 
     
    private void updatePhotosFromCursor(final Cursor c) {
    	c.moveToFirst();