user3332441
user3332441

Reputation: 11

Android: How to check which camera was used to capture an image

Is there a way to figure out whether the front camera or the back camera was used to capture an image? If so, how can I get that information using the built-in Camera app?

Upvotes: 1

Views: 217

Answers (2)

phemt.latd
phemt.latd

Reputation: 1803

Ok, first, where you must find this information? Directly in android or on a server on you have uploaded the image?

  1. On server you can use exiftool to read the value of Camera Identifier in this way:

    bin_path/exiftool <imagePath> | grep -E 'Camera Identifier'
    
  2. Directly in android you can try to do the same and can find usefull start code here Getting all existing exif data from an image

Hope this help!

Upvotes: 2

Krzysztof Bogdan
Krzysztof Bogdan

Reputation: 963

Read image metadata, maybe there will be something useful.

Upvotes: 0

Related Questions