Code example for FragmentActivity

Methods: getSupportLoaderManager

0
    } 
     
    /* -- Photos/Content methods -- */ 
     
    private void updatePhotos() { 
    	getSupportLoaderManager().destroyLoader(mLoaderId);
        getSupportLoaderManager().initLoader(mLoaderId, null, this);
        mLoaderId++;
    } 
     
    private void updatePhotosFromCursor(final Cursor c) {
    	c.moveToFirst();
 
    	final List<FlickrPhoto> photos = new ArrayList<FlickrPhoto>();
    	 
    	while(!c.isAfterLast()) {
    		final FlickrPhoto model = new FlickrPhoto(c);
    		photos.add(model);
    		 
    		c.moveToNext();
    	}