Hi xiaoxin011!
Actually I did solve it, but I didn’t use TwitterCore.getInstance().logIn(activity, callback);.
Instead I used:
twitterAuthClient.authorize(activity, callback);```
And what I had to do was to override `onActivityResult(int requestCode, int resultCode, Intent data)` method in the activity that I'm passing in the `authorize` method and in this override method you just need to call `twitterAuthClient.onActivityResult(requestCode, resultCode, data);` and your `onSuccess/onFailure` callbacks will be called.
Hope it helps!