Android Question Intent camera front as default

Drago Bratko

Active Member
Licensed User
Longtime User
Hi !

We are using this code to opet camera and save output of it:
B4X:
    Dim i As Intent
    i.Initialize("android.media.action.IMAGE_CAPTURE", "")
    File.Delete(Starter.Provider.SharedFolder, tempImageFile)
    Dim u As Object = Starter.Provider.GetFileUri(tempImageFile)
    i.PutExtra("output", u) 'the image will be saved to this path

As default, it opens back camera. We would like to as default have front camera.

Any idea how to do that?

Thanks in advance to all. :)
 
Top