TweetTimelineListAdapter Error


#1

My Code :

public void listTimeline(View view) {
	TwitterApiClient twitterApiClient = TwitterCore.getInstance().getApiClient();
	StatusesService statusesService = twitterApiClient.getStatusesService();

		Call<List<Tweet>> call = statusesService.homeTimeline(100, null, null, null, null, null, null);
		call.enqueue(new Callback<List<Tweet>>() {
			@Override
			public void success(Result<List<Tweet>> result) {
				ListView listView = (ListView) findViewById(R.id.timeline);
				final FixedTweetTimeline timeline = new FixedTweetTimeline.Builder()
						.setTweets(result.data)
						.build();
				final TweetTimelineListAdapter adapter = new TweetTimelineListAdapter.Builder(this)
						.setTimeline(timeline)
						.build();
				listView.setAdapter(adapter);
			}

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

Error : 'Builder(android.content.Context)' in 'com.twitter.sdk.android.tweetui.TweetTimelineListAdapter.Builder' cannot be applied to '(anonymous com.twitter.sdk.android.core.Callback<java.util.List<com.twitter.sdk.android.core.models.Tweet>>)'


#2

Fixed


#3