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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:50:49+00:00 2026-05-31T08:50:49+00:00

Hello I want to make an app that post a specific picture to users

  • 0

Hello I want to make an app that post a specific picture to users twitter account. To make this i think i must ask user his/her twitter username and password. I use twitter4j to make this but i cannot figure how to do it. Is there any way to do it?

  • 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-31T08:50:51+00:00Added an answer on May 31, 2026 at 8:50 am

    try this using twitter4j:

     String  content = et_content.getText().toString();
        String  describle = et_des.getText().toString();
    String result = "";
                ConfigurationBuilder confBuild = new ConfigurationBuilder();
                confBuild.setOAuthConsumerKey(CONST.CONSUMER_KEY);
                confBuild.setOAuthConsumerSecret(CONST.CONSUMER_SECRET);
                confBuild.setOAuthAccessToken(spf.getString("oauth_token", ""));
                confBuild.setOAuthAccessTokenSecret(spf.getString(
                        "oauth_token_secret", ""));
                twitter4j.conf.Configuration config = confBuild.build();
                if (TwitterConnect.twitter != null)
                    TwitterConnect.twitter.shutdown();
            TwitterConnect.twitter =new TwitterFactory(config).getInstance();
            InputStream input =null;
            try {
            TwitterConnect.accessToken = TwitterConnect.twitter
            .getOAuthAccessToken();
            boolean bTest =false;
            AssetManager am = getAssets();
            try {
            input = am.open("toukou.png");
            } catch (IOException e) {
            e.printStackTrace();
            }
    
            if (tc ==null) {
            tc =new TwitterConnect(Twitter.this);
            }
            bTest = tc.TwitterContribute(content, input, describle);
    
            if (bTest) {
            result ="ok";
            } else {
            result ="failure";
            }
            } catch (Exception e) {
    
            }
            return result;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am trying to make a terminal type app that is wider than
Hello i want to make a site that will have a registration page a
Hello everyone I am new to blackberry and I want a textfield that scroll
I want to compile a "Hello World" MS-DOS exe. Not a program that runs
Hello i am new to monotouch and i am trying to make an app
I want to make an App Engine connected Android app, and I'm beginning with
I want to make an app which (amongst other things) can parse feeds loaded
Hello i want to make something on classes i want to do a super
Hello i'm working on a blog app and I have a model: class Post(models.Model):
i want to test a home grown service that listens to a specific port

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.