com.drismo.facebook
Class ShareOnFacebook.UploadToFacebook
java.lang.Object
android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>
com.drismo.facebook.ShareOnFacebook.UploadToFacebook
- Enclosing class:
- ShareOnFacebook
private class ShareOnFacebook.UploadToFacebook
- extends android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>
Upload the content to Facebook, and finish all Facebook dialogs when finished.
Nested classes/interfaces inherited from class android.os.AsyncTask |
android.os.AsyncTask.Status |
Method Summary |
protected java.lang.Boolean |
doInBackground(android.os.Bundle... params)
Send a request to Facebook, to append the trip summary to either a picture or a link. |
protected void |
onPostExecute(java.lang.Boolean uploadSuccess)
DismissProgressDialog , and give the user feedback about the upload. |
protected void |
onPreExecute()
Create the ProgressDialog . |
Methods inherited from class android.os.AsyncTask |
cancel, execute, get, get, getStatus, isCancelled, onCancelled, onProgressUpdate, publishProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
uploadProgressDialog
android.app.ProgressDialog uploadProgressDialog
ShareOnFacebook.UploadToFacebook
private ShareOnFacebook.UploadToFacebook()
onPreExecute
protected void onPreExecute()
- Create the
ProgressDialog
.
- Overrides:
onPreExecute
in class android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>
doInBackground
protected java.lang.Boolean doInBackground(android.os.Bundle... params)
- Send a request to Facebook, to append the trip summary to either a picture or a link.
- Specified by:
doInBackground
in class android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>
- Parameters:
params
- A Bundle
with the summary, and either the link or the picture to share with it.
- Returns:
- The response from the Facebook server.
null
if no response.
onPostExecute
protected void onPostExecute(java.lang.Boolean uploadSuccess)
- Dismiss
ProgressDialog
, and give the user feedback about the upload.
- Overrides:
onPostExecute
in class android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>