Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:27:44+00:00 2026-05-25T22:27:44+00:00

i am currently working on my first android app ever and i have a

  • 0

i am currently working on my first android app ever and i have a problem connecting to twitter to post a status from my Android 3.2 emulator. The emulator seems to be able to connect to the internet as I can use the built in browser to connect to the net and i set up the DNS server.

![application][1]

when I click the update button the entire application fails and gives the following error:

Sorry! The application Burnett Street Hustle v1 (process com.burnettstreethustle) has stopped unexpectedly, please try again.

Since the code compiles and runs up until i click the “Update” button im not sure what is wrong since the error message is also unclear.

here is my code:

public class TwitterTab extends Activity implements OnClickListener {

        static final String TAG = "TwitterTab";


        Button buttonUpdate;
        EditText textStatus;


        public void onClick(View src) {

            String JTWITTER_OAUTH_KEY =  "***************************";
            String JTWITTER_OAUTH_SECRET = "*****************************"; // i do have these codes as the app is registered, they have just been blanked out and are not the cause of the problem.

            OAuthSignpostClient oauthClient = new OAuthSignpostClient(JTWITTER_OAUTH_KEY,JTWITTER_OAUTH_SECRET, "http://127.0.0.1:1066/Twitter/Callback.aspx");



            oauthClient.authorizeUrl();
            String v = OAuthSignpostClient.askUser("Please enter the verification PIN from Twitter");
            oauthClient.setAuthorizationCode(v);

            Object accessToken = oauthClient.getAccessToken();
            Twitter jtwit = new Twitter("burnettstrhustl", oauthClient);

          String status = textStatus.getText().toString();

          Log.d(TAG, "Clicked on "+ status);

          // Toast
          Toast.makeText(this, textStatus.getText(), Toast.LENGTH_LONG).show();

          // set twitter status 
          jtwit.setStatus(status);

          //reset status string
          textStatus.setText("");
        }

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.twitter);
        buttonUpdate = (Button) findViewById(R.id.buttonUpdate);
        textStatus = (EditText) findViewById(R.id.textStatus);

        // Add listener
        buttonUpdate.setOnClickListener(this);

    }

Im also not sure how to use the callback url properly, which url must go in there for the authorization to occur?

Thanks.

UPDATE Stack Trace:

09-16 17:05:41.537: ERROR/AndroidRuntime(409): winterwell.jtwitter.TwitterException: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: null

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:27:45+00:00Added an answer on May 25, 2026 at 10:27 pm

    You’re using Desktop-only example code there.

    Best practice is to create an intent to send the user off to the authorisation URL. And then catch the subsequent web request from Twitter that carries the authorisation info.

    Marakana also have an Android / JTwitter example:
    http://marakana.com/forums/android/examples/312.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on my first android app and have an SQLite database set up
I am currently working on my first android app. In a listview, I need
I am currently working on my first website. I have no idea where to
I have just started working on my first Android application and am going ok.
I'm currently working on my fist app for android phones and I want to
At first I thought this was a problem with my app, but it seems
I am working on my first Android application, and I have run into a
I am working on a android app and I have an EditText where user
I'm currently working on an Android app that automatically changes the phones state based
I am currently working on Android I have a xml which is like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.