Display Image on Home TimeLine Twitter In Android

android

#1

I have use Status Service show home timeline twitter. It get susscess home timeline but it no show image of status!. Please help me!
Here is my code

TwitterAuthConfig authConfig = new TwitterAuthConfig("KEY", "KEY_SCARET");
    Fabric.with(getActivity(), new TwitterCore(authConfig), new TweetUi());

    if (android.os.Build.VERSION.SDK_INT > 9) {
        StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
        StrictMode.setThreadPolicy(policy);
    }

    final TweetViewFetchAdapter adapter =
            new TweetViewFetchAdapter<CompactTweetView>(
                    getActivity());

    setListAdapter(adapter);
    TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();
    TwitterSession session= Twitter.getSessionManager().getActiveSession();
    final long userId=session.getUserId();

   // StatusesService statusesService = twitterApiClient.getStatusesService();

    StatusesService statusesService=Twitter.getApiClient().getStatusesService();
    statusesService.homeTimeline(500, null, null, false, false, false, false,
            new Callback<List<Tweet>>() {
                @Override
                public void success(Result<List<Tweet>> listResult) {

                    adapter.setTweets(listResult.data);

                    //adapter.setTweetIds(listResult.data);
                }

                @Override
                public void failure(TwitterException e) {
                }
            });

#2

Look like the last parameter, include_entities, should be set to true. See: https://dev.twitter.com/rest/reference/get/statuses/home_timeline


#3

Thanks EricFrohnhoefer. I write

statusesService.homeTimeline(500, null, null, null, null, null, null,
        new Callback<List<Tweet>>() {

It working!


#4