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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:57:42+00:00 2026-05-26T10:57:42+00:00

I have successfully completed this: http://www.sitepoint.com/loading-twitter-data-into-android-with-lists/ tutorial and have gotten my app to display

  • 0

I have successfully completed this: http://www.sitepoint.com/loading-twitter-data-into-android-with-lists/ tutorial and have gotten my app to display tweets based on a search criteria.

What I want my app to do is display the timeline of a specific user.

From that tutorial I have replaced my get line with this:

HttpGet("http://api.twitter.com/1/statuses/user_timeline.json?screen_name=android");

I am getting no results in my listview.. I shouldn’t need to authenticate user name and password because all I want to do is display the timeline, not manipulate 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-26T10:57:42+00:00Added an answer on May 26, 2026 at 10:57 am

    If you are using Twitter4j this is pretty easy :

     public final class GetTimelines {
            /**
             * Usage: java twitter4j.examples.GetTimelines ID Password
             * @param args String[]
             */
            public static void main(String[] args) {
    
                Twitter unauthenticatedTwitter = new TwitterFactory()
                        .getInstance();
                System.out.println("Showing public timeline.");
                try {
                    List<Status> statuses = unauthenticatedTwitter
                            .getPublicTimeline();
                    for (Status status : statuses) {
                        System.out.println(status.getUser().getName() + ":"
                                + status.getText());
                    }
                    if (args.length < 2) {
                        System.out
                                .println("You need to specify TwitterID/Password combination to show UserTimelines.");
                        System.out
                                .println("Usage: java twitter4j.examples.GetTimelines ID Password");
                        System.exit(0);
                    }
    
                    // Other methods require authentication
                    Twitter twitter = new TwitterFactory().getInstance(args[0],
                            args[1]);
                    statuses = twitter.getFriendsTimeline();
                    System.out.println("------------------------------");
                    System.out.println("Showing " + args[0]
                            + "'s friends timeline.");
                    for (Status status : statuses) {
                        System.out.println(status.getUser().getName() + ":"
                                + status.getText());
                    }
                    statuses = twitter.getUserTimeline();
                    System.out.println("------------------------------");
                    System.out.println("Showing " + args[0] + "'s timeline.");
                    for (Status status : statuses) {
                        System.out.println(status.getUser().getName() + ":"
                                + status.getText());
                    }
                    Status status = twitter.showStatus(81642112l);
                    System.out.println("------------------------------");
                    System.out.println("Showing " + status.getUser().getName()
                            + "'s status updated at " + status.getCreatedAt());
                    System.out.println(status.getText());
                    System.exit(0);
                } catch (TwitterException te) {
                    System.out.println("Failed to get timeline: "
                            + te.getMessage());
                    System.exit(-1);
                }
            }
        }
    

    Sample taken from here

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

Sidebar

Related Questions

I have implemented an HTTPOperations class in Android that can successfully produce an HTTP
I am using a webbrowser control to login to a website. WbBrowser.Navigate(http://www.foo.com/login.php) Once the
I have just completed the tryruby.org tutorial, followed by the rubyforzombies.org tutorials and all
We have just completed implementing a successful but problematic project. We want to get
I have successfully connected to an Oracle database (10g) from C# (Visual Studio 2008)
I have successfully managed to get System.Speech.Synthesis to read English text in arbitrary voices
I have successfully implemented interop beftween Win32 application and managed .Net dll as described
I have successfully upgraded an MFC application which was compiled with an old version
I have successfully used the Excel and Word addin templates in Visual studio 2008
I have successfully set up FILESTREAM on my SQL 2008 server; however I've noticed

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.