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 8451707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:18:41+00:00 2026-06-10T11:18:41+00:00

I am trying to post a link on my twitter wall just like update

  • 0

I am trying to post a link on my twitter wall just like update status or post a tweet on wall.

I am currently using twitter4j-core-2.1.11.jar library to post tweet on twitter but I also want to post a link with tweet text.

How can i do it please help!

  • 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-10T11:18:42+00:00Added an answer on June 10, 2026 at 11:18 am

    This may help you!

    public class ShareButtonActivity extends Activity {
    
        // SocialAuth Component
        SocialAuthAdapter adapter;
    
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
    
            // Welcome Message
            TextView textview = (TextView)findViewById(R.id.text);
            textview.setText("Title");
    
            //Create Your Own Share Button
            Button share = (Button)findViewById(R.id.sharebutton);
            share.setText("Share");
            share.setTextColor(Color.WHITE);
            share.setBackgroundResource(R.drawable.button_gradient);
    
            // Add it to Library
            adapter = new SocialAuthAdapter(new ResponseListener());
    
            // Add providers
    
            adapter.addProvider(Provider.TWITTER, R.drawable.twitter);
    
           //before that import library which is given by socialauth in link given below
            adapter.enable(share);
    
        }
    
    
        /**
         * Listens Response from Library
         * 
         */
    
        private final class ResponseListener implements DialogListener 
        {
            public void onComplete(Bundle values) {
    
                // Variable to receive message status
    
                Log.d("ShareButton" , "Authentication Successful");
    
                // Get name of provider after authentication
                String providerName = values.getString(SocialAuthAdapter.PROVIDER);
                Log.d("ShareButton", "Provider Name = " + providerName);
    
                adapter.updateStatus("your message|link" + System.currentTimeMillis());
                Toast.makeText(ShareButtonActivity.this, "Message posted on " + providerName, Toast.LENGTH_SHORT).show();       
    
             }
    
             public void onError(SocialAuthError error) {
                 Log.d("ShareButton" , "Authentication Error");
             }
    
             public void onCancel() {
                 Log.d("ShareButton" , "Authentication Cancelled");
             }
    
         }
    
    }
    

    click here

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

Sidebar

Related Questions

I'm trying to post a link + status through my app, using this "popup"
I'm trying to send post using API feed. I set fields: message , link
I'm trying to post to my registration controller using a link_to link. I have
I am trying to post on my friend's wall using PHP SDK of FB.
I am trying to link a twitter account to wordpress. Ideally I would like
I've spent the last three hours trying to get a simple Twitter status update
This is my string: <link href=/post?page=4&amp;tags=example rel=last title=Last Page> From there I am trying
Trying to post a screenshot in a tweet from within my app.. so far
Im trying to post to a Fanpage wall as the Fanpage it self So
I am trying to post a URL to the server using the Asynchronous type

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.