I have Android application, which have directory module and it list out some of the contacts. Now I want to fetch profile image of each contact person from their Twitter account and for that I have their twitter username too. How I can fetch it in Android?
I have already tried with this but getting no success.
imageView.setImageDrawable(readDrawableFromNetwork("https://api.twitter.com/1/users/profile_image?screen_name=twitterapi&size=bigger"));
this is the relavent API for twitter Twitter API we can get json from this , by using json string we can do what ever you want. for profile image use this json object : profile_image_url you can get iamge url. by using url get image drawable.