Code example for AsyncTaskLoader

Methods: stopLoading

0
 
    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");
        mMasterSyncEnabled = ContentResolver.getMasterSyncAutomatically();
        if(mMasterSyncEnabled && mPhotoSyncEnabled)
        { 
            if(mSettingsLoader == null)
                mSettingsLoader = new SystemSettingLoader(this);
            mSettingsLoader.startLoading();
        } else 
Experience pair programming with AI  Get Codota for Java