|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
daily49er.android.app.FacebookShare
public class FacebookShare
Implementation for posting an article to the user's Facebook "wall". In order to make this class work, you'll need to create a new project that contains facebook SDK files and reference it to this project.
Constructor Summary | |
---|---|
FacebookShare()
|
Method Summary | |
---|---|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
No clue what this does, it's used by the Facebook API. |
void |
onCreate(Bundle savedInstanceState)
Called when the activity is first created. |
boolean |
restoreCredentials(Facebook facebook)
Retrieve and restore the user's Facebook login credentials from the app's shared preferences. |
boolean |
saveCredentials(Facebook facebook)
Saves the user's authenticated Facebook login credentials. |
static void |
setUrl(java.lang.String url)
The URL is set in Article.java as it is the ciurrent article being viewed. |
void |
updateStatus()
Creates and displays a Facebook dialog with the URL set; the dialog gives the user the option to enter a message into the text field. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacebookShare()
Method Detail |
---|
public static void setUrl(java.lang.String url)
url
- - the URL that will be posted in the user's Facebook wall.public void onCreate(Bundle savedInstanceState)
public void updateStatus()
public void onActivityResult(int requestCode, int resultCode, Intent data)
public boolean saveCredentials(Facebook facebook)
facebook
- - an instantiated facebook object
public boolean restoreCredentials(Facebook facebook)
facebook
- - an instantiated facebook object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |