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

DOM85

Active Member
Licensed 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

Well-Known Member
Licensed 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".
 

DOM85

Active Member
Licensed 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.
 
Top