I\'m trying to implement a simple application that uses Twitter kit. The problem is that i\'m not able to get the profile picture.Any help would be appreciated.
Thanks<
Found the answer.
There is a callback which returns you the User
object.
TwitterCore.getInstance().getApiClient().getAccountService().verifyCredentials(true, true, false).enqueue(new Callback() {
@Override
public void success(Result result) {
}
@Override
public void failure(TwitterException exception) {
}
});
On the success branch, you can get the User
object by calling:
User user = userResult.data;
And from this object you can get all the information form the user. For the profile image:
String profileImage = user.profileImageUrl;