-
Notifications
You must be signed in to change notification settings - Fork 20
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
Flash feature not working on Android 8.1 #229
Comments
I'm thinking that it might be necessary to use the new camera2 API on some of these newer devices. This gives us the use of setTorchMode but we will need to provide fallback for lower API levels. Unfortunately, this really needs our |
@mattharris Yeah, that's why we decided to leave it alone a couple years back when Steve and I looked into this. If we are going forward with the feature (which would be great), don't think we can leave out support for the new camer2 API - that would cause too many support headaches. I think I did some code in ConnectionActivity years ago that traps a case where a method doesn't exist in the current Android version. (see overridePendingTransition). There is other code that directly tests the API level before calling something that isn't supported in prior levels. Can we use some combination of these approaches here, or is the new camer2 API totally unavailable to us with our current build setting? |
@n3ix I'm going to re-visit this as part of the investigations due to being forced by Google to increase the API level to 26 - after 31st October, we can no longer submit updates to the Play Store if our targetSdkVersion is lower than 26. I do already have proof of concept code for the use of the different camera APIs that is invoked based on device capability, but this needs to be refactored as it was written prior to the shift to Gradle builds. |
@mattharris Yes it is fixed by 374 |
The recently added Flash feature does not turn on the Flash LED on a Nexus 6P running Android 8.1 The new flash icons work as expected, logcat shows a message saying the Flash was turned on, but the LED does not light.
The text was updated successfully, but these errors were encountered: