com.drismo.facebook
Class ShareOnFacebook.UploadToFacebook

java.lang.Object
  extended by android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class android.os.AsyncTask
android.os.AsyncTask.Status
 
Field Summary
(package private)  android.app.ProgressDialog uploadProgressDialog
           
 
Constructor Summary
private ShareOnFacebook.UploadToFacebook()
           
 
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
 

Field Detail

uploadProgressDialog

android.app.ProgressDialog uploadProgressDialog
Constructor Detail

ShareOnFacebook.UploadToFacebook

private ShareOnFacebook.UploadToFacebook()
Method Detail

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)
DismissProgressDialog, and give the user feedback about the upload.

Overrides:
onPostExecute in class android.os.AsyncTask<android.os.Bundle,java.lang.Void,java.lang.Boolean>