LoginActivity¶
-
public class
LoginActivity
extends Activity implements LoaderCallbacks<Cursor>¶ Basic login screen based on Android Studio login Activity template
Methods¶
onCreate¶
-
protected void
onCreate
(Bundle instanceState)¶ Called when the activity is starting
Parameters: - instanceState – If the activity is being re-initialized after previously being shut down then this Bundle contains the data it most recently supplied in onSaveInstanceState(Bundle). Note: Otherwise it is null.
onCreateLoader¶
-
public Loader<Cursor>
onCreateLoader
(int index, Bundle bundle)¶ Instantiate and return a new Loader for the given ID.
Parameters: - index – The ID whose loader is to be created.
- bundle – Any arguments supplied by the caller.
Returns: Return a new Loader instance that is ready to start loading.
onLoadFinished¶
-
public void
onLoadFinished
(Loader<Cursor> cursorLoader, Cursor cursor)¶ Called when a previously created loader has finished its load. Note that normally an application is not allowed to commit fragment transactions while in this call, since it can happen after an activity’s state is saved.
Parameters: - cursorLoader – The Loader that has finished
- cursor – The data generated by the Loader.
onLoaderReset¶
-
public void
onLoaderReset
(Loader<Cursor> cursorLoader)¶ Called when a previously created loader is being reset, and thus making its data unavailable. The application should at this point remove any references it has to the Loader’s data.
Parameters: - cursorLoader – The Loader that is being reset.