Hi
I want to Create an simple application. There are two button one for front camera and second for back camera. When i click on front camera button then only front camera is opened no one can open back camera and when i click on back camera button then only back camera is open.
Please help me how can i do this please
I hope you can try like this but I didnβt tested it
For button set front camera to true
For 2nd button click set front camera to falseβ¦
1 Like
there is no property showing like this in camera
dora_paz
(Dora)
July 22, 2021, 8:32am
#4
Yes there is not cause this option is deprecated.
Maybe this extension might have an option
Pro camera is made with the latest Android camera 2 API which gives access to more features and stability than the camera 1 API. This extension was written long ago
Features:
Camera Filters
Noise reduction mode
Enhance mode for camera output
Camera focus lock/unlock
Manual focus distance (which currently works with just a few devices such as Samsung)
Other things which the camera have
Documentation
Explaining how each block work and their features
[locked]
Fired when caβ¦
i used this camera is open but i cannot click or save the image how can i do that if you can help me
Jinx
(Jinx)
July 22, 2021, 8:59am
#7
Here is the same app with in built camera component
Camera.apk (5.1 MB)
Here is aia file try it and tell if this works
Camera.aia (1.6 KB)
Thanks
If not, you can make use of this postβ¦
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 -β¦
1 Like
Jinx:
Here is aia file
I think you misunderstand his query. If he hit button 1 front should open
If he hit button2 back side camera to open.
In your aia, it opens camera and user need to change from the default camera.
2 Likes
Still-learning:
make use of this post
i tried this aia, and got working in companion, oppo neo7 model
1 Like
system
(system)
Closed
August 21, 2021, 9:06am
#11
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.