gellyke gellyke - 1 year ago 90
Android Question

How to get profile picture in android using Twitter kit,

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.


Answer Source

Found the answer.

There is a callback which gives you back the User object.

  Twitter.getApiClient().getAccountService().verifyCredentials(true, false, new Callback<User>() {
                public void success(Result<User> userResult) {

                public void failure(TwitterException e) {

On the success branch, you can get the User object by calling:

 User user =;

And from this object you can get all the information form the user.For the op

String profileImage= user.profileImageUrl;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download