Fr4nz
Fr4nz

Reputation: 1636

Image format of pictures taken with the camera (Android phones)

For my app I have to send a mail with a photo (I'm using a webservice to do that).

I'd like to know if there are some Android phones that does not produce jpg file with the camera (such as png file).

Upvotes: 7

Views: 23031

Answers (1)

s.krueger
s.krueger

Reputation: 1043

I think every device should support JPEG images, because the description of the

takePicture (Camera.ShutterCallback shutter, Camera.PictureCallback raw, Camera.PictureCallback postview, Camera.PictureCallback jpeg)

method says that only raw and postview callbacks may be null.

On the other side, you may always call

camera.getParameters().getSupportedPictureFormats()

to see what picture formats are supported.

Upvotes: 5

Related Questions