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

  • SEARCH
  • Home
  • 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 7817397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:13:10+00:00 2026-06-02T06:13:10+00:00

I am implemented twitter integration into my android project the problem is the code

  • 0

I am implemented twitter integration into my android project the problem is the code working some times some times it’s showing the error. I am not understanding what wrong with my code.Below is my code and log-cat errors.

consumer = new DefaultOAuthConsumer(TWITTER_OAUTH_KEY,TWITTER_OAUTH_SECRET);

    provider = new DefaultOAuthProvider(
            "http://twitter.com/oauth/request_token",
            "http://twitter.com/oauth/access_token",
            "http://twitter.com/oauth/authorize");

    mTwitterBtn = (CheckBox) findViewById(R.id.twitterCheck);

    mTwitter = new TwitterApp(this, twitter_consumer_key,twitter_secret_key);
    mTwitter.setListener(mTwLoginDialogListener);

    mTwitterBtn.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View v) {

            if (mTwitter.hasAccessToken()) {
                postToTwitter = mTwitterBtn.isChecked();

                Intent shareIntent = new Intent(
                        ShareApplicationTweeter.this, PostApplication.class);
                startActivity(shareIntent);

                // share("Hi", "Test");

            } else {
                mTwitterBtn.setChecked(false);
                mTwitter.authorize();
            }

        }
    });

    if (mTwitter.hasAccessToken()) {
        username = mTwitter.getUsername();
        username = (username.equals("")) ? "No Name" : username;
        mTwitterBtn.setText("  Twitter  (" + username + ")");
    }

04-19 01:24:04.001: E/AndroidRuntime(545): FATAL EXCEPTION: main
04-19 01:24:04.001: E/AndroidRuntime(545): java.lang.NoClassDefFoundError: oauth.signpost.basic.DefaultOAuthConsumer
04-19 01:24:04.001: E/AndroidRuntime(545): at com.a1.buzzmob.ShareApplicationTweeter.onCreate(ShareApplicationTweeter.java:86)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.os.Handler.dispatchMessage(Handler.java:99)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.os.Looper.loop(Looper.java:123)
04-19 01:24:04.001: E/AndroidRuntime(545): at android.app.ActivityThread.main(ActivityThread.java:4627)
04-19 01:24:04.001: E/AndroidRuntime(545): at java.lang.reflect.Method.invokeNative(Native Method)
04-19 01:24:04.001: E/AndroidRuntime(545): at java.lang.reflect.Method.invoke(Method.java:521)
04-19 01:24:04.001: E/AndroidRuntime(545): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-19 01:24:04.001: E/AndroidRuntime(545): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-19 01:24:04.001: E/AndroidRuntime(545): at dalvik.system.NativeStart.main(Native Method)
04-19 01:29:04.033: I/Process(545): Sending signal. PID: 545 SIG: 9

Thanks,
Murali.

  • 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-06-02T06:13:11+00:00Added an answer on June 2, 2026 at 6:13 am

    Move your libraries to “libs” folder

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

Sidebar

Related Questions

I saw some topics here regarding facebook and twitter integration with Android Application. I
I'm trying to implement http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master into my code. I'm following the Demo provided and
I've implemented two REST services: Twitter and Netflix. Both times, I struggled to find
I have an Android application that I've been working on, and it's implemented using
I'm using Twitter Bootstrap 2.0.1 in a Rails 3.1.2 project, implemented with bootstrap-sass. I'm
I'm having an issue while developing a basic Rails application. I've implemented Twitter Bootstrap
I'm using socialoauth ( http://code.google.com/p/socialoauth/ ) to implement twitter & facebook logins for a
I implemented a U.S. find near zip code search for somebody. The coordinates of
We're rolling out a redesign of helpcurenow.org, and we've implemented a Twitter feed in
I've implemented a simple example of the Twitter @anywhere api to display user hovercards.

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.