Code example for AsyncTaskLoader

Methods: reset

0
 
    protected void onDestroy() 
    { 
        super.onDestroy(); 
        if(mSettingsLoader != null)
            mSettingsLoader.reset();
    } 
 
    public void onPause() 
    { 
        super.onPause(); 
        if(mSettingsLoader != null)
            mSettingsLoader.stopLoading();
        unregisterReceiver(mUploadsProgressReceiver);
    } 
 
    public void onResume() 
    { 
        super.onResume(); 
        mPhotoSyncEnabled = ContentResolver.getSyncAutomatically(AccountsUtil.newAccount(getAccount().getName()), "iu.EsGoogleIuProvider");