Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Trying to flip between the front and back cameras

26 views
Skip to first unread message

S Chapman

unread,
Nov 26, 2024, 9:47:17 AM11/26/24
to Android CameraX Discussion Group
I'm new to Kotlin.  I'm enjoying it very much.  But, it's been a while since I programed.  I just finished the ' Getting Started with CameraX  ' tutorial from the android developer website, and I'm trying to manipulate it to use both the front and back cameras.  I would like to be able to flip between cameras.  Is there any code available that I can add to the current code (possibly with explanation)?

Charcoal Chen

unread,
Nov 26, 2024, 8:37:03 PM11/26/24
to S Chapman, Android CameraX Discussion Group
Hi,

Please see the CameraXBasic sample app that may help you to know how to switch the back and front cameras.
The code you want to know should be located here.

On Tue, Nov 26, 2024 at 10:47 PM S Chapman <stephenl...@gmail.com> wrote:
I'm new to Kotlin.  I'm enjoying it very much.  But, it's been a while since I programed.  I just finished the ' Getting Started with CameraX  ' tutorial from the android developer website, and I'm trying to manipulate it to use both the front and back cameras.  I would like to be able to flip between cameras.  Is there any code available that I can add to the current code (possibly with explanation)?

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/e15ec9db-86b6-4bac-a2d6-680256b55342n%40android.com.
Reply all
Reply to author
Forward
0 new messages