2014-03-27 31 views
0

我想獲取LinkedIn的配置文件圖像。我給r_basicprofile權限,但沒有結果。Linkedin:android,無法獲取配置文件圖片

我的代碼是:

Person person = client.getProfileForCurrentUser(EnumSet.of(ProfileField.ID, ProfileField.FIRST_NAME, 
          ProfileField.LAST_NAME, ProfileField.HEADLINE, 
          ProfileField.INDUSTRY, ProfileField.PICTURE_URL, 
          ProfileField.DATE_OF_BIRTH, ProfileField.LOCATION_NAME, 
          ProfileField.MAIN_ADDRESS, ProfileField.LOCATION_COUNTRY)); 

回答

-1

是你可以做一個變量的URL,URL =新的URL(person.getPicture_URL);然後讓BitmapFactory解碼url。

+0

請檢查http://stackoverflow.com/a/27754060/2732632 –