Google contacts API returns low resolution photos

别来无恙 提交于 2019-12-25 03:55:18

问题


I'm using Google's Data APIs Java library to access contacts and when using the getContactPhotoLink() method I can only get low resolution (96x96) photos. Is there anyway I can get bigger resolution photos?

On my Android phone the photos showing up are definitely not 96x96 pixels...

Thanks


回答1:


It heavily depends on the version of Android.

If you have anything under ICS 4.0 then the maximum image size is 96x96. It may look bigger on your phone, but thats because the image is being scaled to fit the screen. So if you want a bigger image just scale it to fit.

ICS 4.0 supports images of up to 256x256

Jelly Bean 4.1 and above currently support up to 720x720



来源:https://stackoverflow.com/questions/25392675/google-contacts-api-returns-low-resolution-photos

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!