[英]Linkedin: android, Unable to get Profile Picture
我想獲取Linkedin的頭像。 我授予r_basicprofile權限,但沒有結果。
我的代碼是:
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));
是的,您可以創建一個可變的url,然后url = new URL(person.getPicture_URL); 然后讓BitmapFactory解碼網址。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.