CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.35k stars 878 forks source link

Activity open from screenlock won't show viewfinder #624

Open tuupainen opened 3 years ago

tuupainen commented 3 years ago

My app is opening activity with com.camerakit.CameraKitView. Activity opens without user actions and start to show viewfinder.

This is working fine with older than Android 10 (SDK 29), but is it now show that the case is somehow prevented in Android 10.

In Android 10 activity opens fine (as permission to 'draw over all' has been added) but viewfinder stays black and kit is not able to do capture.

Same problem occurs even all screenlocks are disabled.

Environment CameraKit Version: 'com.camerakit:camerakit:1.0.0-beta3.11' 'com.camerakit:jpegkit:0.1.0'

Android Device: Galaxy Samsung A51 5G

Android Version: Android 10

Steps to Reproduce Open camera Actual Behavior Viewfinder not visible