Code example for AsyncTaskLoader

0
      }.run(); 
    } 
  } 
   
  public SharedPreferencesLoader(Context context) {
    super(context);
  } 
   
  /**  
   * Runs on a worker thread, loading in our data.   
   */ 
  @Override 
  public SharedPreferences loadInBackground() {
    prefs=PreferenceManager.getDefaultSharedPreferences(getContext());
     
    return(prefs);
  } 
 
  /** 
   * Starts an asynchronous load of the list data. 
Experience pair programming with AI  Get Codota for Java