According to the TwitterCore documentation :
The simplest way to authenticate a user is using TwitterLoginButton.
How do you authent
Take a look at TwitterAuthClient.
An example usage would be something like (where getCallingActivity() can be replaced with your calling Activity),
TwitterAuthClient twitterAuthClient = new TwitterAuthClient();
twitterAuthClient.authorize(getCallingActivity(), new Callback() {
@Override
public void success(final Result result) {
final TwitterSession sessionData = result.data;
// Do something with the returned TwitterSession (contains the user token and secret)
}
@Override
public void failure(final TwitterException e) {
// Do something on fail
}
});
Then delegate the onActivityResult to TwitterAuthClient,
twitterAuthClient.onActivityResult(requestCode, resultCode, data);