Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow camera view #19

Open
mankoff opened this issue Jul 15, 2023 · 1 comment
Open

Allow camera view #19

mankoff opened this issue Jul 15, 2023 · 1 comment

Comments

@mankoff
Copy link

mankoff commented Jul 15, 2023

Describe the solution you'd like

I hoped this would let me use the camera (preview) with the light active. Can this feature be added?

@TacoTheDank
Copy link
Contributor

I don't think so, because flashlight is a camera feature. If you look here: https://github.com/kb-1000/android-torchlight/blob/master/app/src/main/AndroidManifest.xml#L10

You see that the app declares both CAMERA and FLASHLIGHT.

If you look here: https://stackoverflow.com/a/48553060

Apparently apps can sometimes crash if they don't declare CAMERA with FLASHLIGHT together (probably applies to certain devices).

And if you look here: https://developer.android.com/guide/topics/media/camera.html#release-camera

You see that cameras cannot be used at the same time by multiple apps.

As the flashlight is inherently part of the camera per the system specifications, another app cannot also use the camera as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants