public void onContentChanged() {
   if (mStarted) {
     forceLoad();
     return;
   }
   mContentChanged = true;
 }
  private void resetCursorLoaderUri() {
    Loader<Cursor> loader = getLoaderManager().getLoader(LOADER_ID_LIST);
    if (loader == null) {
      return;
    }

    CursorLoader cl = (CursorLoader) loader;
    cl.setUri(POIs.createUriSorted(mLocation));
    loader.forceLoad();
  }
        @Override
        public void onChange(boolean selfChange) {
          if (getActivity() == null) {
            return;
          }

          Loader<Cursor> loader = getLoaderManager().getLoader(0);
          if (loader != null) {
            loader.forceLoad();
          }
        }
 /** reloadStores and clean Contextual Action Bar if present */
 public void reloadStores() {
   Log.v("SOURCES", "reloading sources");
   Loader l = getSherlockActivity().getSupportLoaderManager().getLoader(LOADER_INDEX);
   if (l != null) {
     adapter.clear();
     l.forceLoad();
   }
   if (actionMode != null) {
     actionMode.finish();
     selected = new ArrayList<LayerStore>();
     getListView().clearChoices();
     getListView().clearFocus();
   }
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.fragment_product_detail);

    getSupportActionBar().setDisplayHomeAsUpEnabled(true);

    ImageView view = (ImageView) findViewById(R.id.detailImage);
    if (view != null && lastBitmap != null) {
      view.setImageBitmap(lastBitmap);
    }

    updateData();

    spinner = (ProgressBar) findViewById(R.id.storesProgressBar);
    spinner.setVisibility(View.GONE);

    updateData();

    if (savedInstanceState == null) {
      // Prepare the loader.  Either re-connect with an existing one,
      // or start a new one.
      Bundle args = new Bundle();
      String url = String.format("http://lcboapi.com/products/%s", lastResult.itemNumber);
      args.putString("url", url);

      loaded = false;

      Loader loader = getSupportLoaderManager().initLoader(0, args, this);
      // call forceLoad() to start processing
      loader.forceLoad();
    } else {
      if (lastLocations != null && !lastLocations.isEmpty()) {
        addLastLocationsData();
      }
    }
  }
 @Override
 public Loader<Setting> onCreateLoader(int arg0, Bundle arg1) {
   Loader<Setting> loader = new SettingLoader(SettingsScreen.this, dbPath);
   loader.forceLoad();
   return loader;
 }