Android Question What is the last best way to take a picture with the back or the front camera

DOM85

Active Member
Licensed User
Longtime User
Hello,

I see many examples in the forum to take pictures in B4A. I experimented some of them but always with some problem or limitation.
I need only to take pictures with the front or the back camera, in portrait or landscape.

Could you advice me the latest simplest way and the more efficient one to do that, maybe using a new library that i don't know yet?

Thank you for your help.

DOM.
 

peacemaker

Expert
Licensed User
Longtime User
If you don't need to make some extra settings or pre-processing the image - better to call camera by the intent and get the photo from a 3rd party system camera app. And your app won't need to have access\permission to the camera hardware.
Search for "camera intent".
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
My favorite is CameraKit as it is able to Zoom the picture/video. Even while recording.
 
Upvote 0

DOM85

Active Member
Licensed User
Longtime User
Thank you to all of you for your advices and your answers.

Manfred, Camerakit seems fine, so i try to use the example.
I have put Camerakit.jar and Camerakit.xml in B4A directory Library
When loading the example B4A asked to put also Camerakit.aar in Library directory (?).
Now when i compile i obtain the error "Cannot find Central Directory".

Do you have an idea about my error during installation ? (i had problem to extract files with 7zip)
Thank you for your help.
 
Upvote 0
Top