Hello,
I am trying to show home time line in android using fabric with retrofit. I got all tweets which is showing on my timeline but it do not includes any media attached to it in app.
TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();
TwitterApiClient client = TwitterCore.getInstance().getApiClient(session);
StatusesService service = client.getStatusesService();
service.homeTimeline(200, 9999999999999999L, 999999999999999999L, true, false, true, true,
new Callback<List<Tweet>>() {
@Override
public void success(Result<List<Tweet>> result) {
adapter = new TwHomeAdapter(context, result.data);
recyclerView.setAdapter(adapter);
adapter.notifyDataSetChanged();
}
@Override
public void failure(TwitterException e) {
Log.e("TwitterException", e.toString());
}
}
);
This is how i have shown hometimeline and when i try to get media url in adapter it gives me null every time.