List of usage examples for android.content Loader forceLoad
public void forceLoad()
From source file:at.bitfire.davdroid.ui.setup.QueryServerDialogFragment.java
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setStyle(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo_Light_Dialog); setCancelable(false);//from www. j a v a2 s . co m Loader<ServerInfo> loader = getLoaderManager().initLoader(0, getArguments(), this); if (savedInstanceState == null) // http://code.google.com/p/android/issues/detail?id=14944 loader.forceLoad(); }
From source file:com.amgems.uwschedule.ui.HomeActivity.java
@Override public Loader<GetSlnLoader.Slns> onCreateLoader(int id, Bundle args) { Loader<GetSlnLoader.Slns> loader = new GetSlnLoader(this, new DefaultHttpClient(), mCookieStore.getActiveCookie()); loader.forceLoad(); return loader; }