开发者

PhotoChooserTask: know where does the photo come from

开发者 https://www.devze.com 2023-02-24 06:16 出处:网络
I\'m using PhotoChooserTask with showCamera set to true. My question is if it is possible to know where the photo comes from: the library or the use开发者_如何学JAVAr has taken a new photo.

I'm using PhotoChooserTask with showCamera set to true. My question is if it is possible to know where the photo comes from: the library or the use开发者_如何学JAVAr has taken a new photo. What I want is to send the coordinates if the photo has just been taken. I know I could put two buttons, one for choosing from the library and another to take a new photo, but I'd prefer to have it in a single button.

Thank you!


Does the photo contain EXIF metadata? Perhaps you could read the photo stream and load the EXIF metadata and figure out pic time, GPS coords, etc.

0

精彩评论

暂无评论...
验证码 换一张
取 消