Hello, I’m trying to show a live preview of the front camera using Surface View component.
I think it has some problem or maybe I’m doing something wrong.
There is no problem to show back camera’s live preview but when to try to show front camera preview, it shows only back screen. I tried everything.
Same issue in Companion and exported APK.
Both companion and APK have all the permission accepted.
I used two different phones and the issue was still there on both of the phones.
1st phone - Xiaomi Redmi Note 7 PRO (Android 9)
2nd phone - Samsung Galaxy Grand 2 (Android 7) (Custom ROM - RR) (Rooted)
it only works when i pause and resume my app, like while using open another thing and when i resume my app, it shows front camera on, but dont turn on front cam flash, getting error “set Parameters Failed”