public class ClearContentTask
extends android.os.AsyncTask<java.lang.Void,java.lang.Integer,java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
protected android.app.ProgressDialog |
_progressDialog |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Boolean |
doInBackground(java.lang.Void... arg0) |
static boolean |
isClearContent(android.content.SharedPreferences preferences)
Used during shutdown to determine if the device is clearing content
|
protected void |
onCancelled(java.lang.Boolean result) |
protected void |
onPostExecute(java.lang.Boolean result) |
protected void |
onPreExecute() |
static void |
setClearContent(android.content.SharedPreferences preferences,
boolean b)
Set flag indicating device is clearing content
|
protected android.app.ProgressDialog _progressDialog
protected final android.content.Context _context
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,java.lang.Boolean>
protected java.lang.Boolean doInBackground(java.lang.Void... arg0)
doInBackground
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,java.lang.Boolean>
public static void setClearContent(android.content.SharedPreferences preferences, boolean b)
b
- set the state of the clearingContent flagpublic static boolean isClearContent(android.content.SharedPreferences preferences)
preferences
- a reference to shared preferenceprotected void onCancelled(java.lang.Boolean result)
onCancelled
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,java.lang.Boolean>
protected void onPostExecute(java.lang.Boolean result)
onPostExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Integer,java.lang.Boolean>