Note that there are some explanatory texts on larger screens.

plurals
  1. POSimple JTwitter for Android example
    primarykey
    data
    text
    <p>I have tried many different way and search all over the internet to find a tutorial to use JTwitter with OAuth. Here are the following step I have accomplish</p> <p>Download both Jtwitter and Signpost Add them as Jars in the Java Builder</p> <p>Created a simple button that run</p> <pre><code>public class ShareGenerator extends Activity { private static final String JTWITTER_OAUTH_KEY = "this_is_populated"; private static final String JTWITTER_OAUTH_SECRET = "this_is_populated"; Button menupopButton; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.share); this.setContentView(R.layout.share); this.txShare = (TextView)this.findViewById(R.id.lblshare); this.menupopButton = (Button)this.findViewById(R.id.menupop); menupopButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { TwitterSend(); } }); } </code></pre> <p>and I have my class</p> <pre><code>public void TwitterSend () { OAuthSignpostClient client = new OAuthSignpostClient(JTWITTER_OAUTH_KEY, JTWITTER_OAUTH_SECRET, "oob"); Twitter jtwit = new Twitter("bob", client); // open the authorisation page in the user's browser client.authorizeDesktop(); // get the pin String v = client.askUser("Please enter the verification PIN from Twitter"); client.setAuthorizationCode(v); // Optional: store the authorisation token details Object accessToken = client.getAccessToken(); // use the API! jtwit.setStatus("Messing about in Java"); } </code></pre> <p>However I can't even get the OAuth screen to pop up. It crashes when it get there. Can anyone help me at least see the OAuth screen? I do have the import set correctly.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload