android-hidden-camera
android-hidden-camera copied to clipboard
App get lag when start camera from service
When open camera from the service app get freeze some second. Is there any way to run this smoothly? I user Handler and no luck.
Your device on android 8?
No, its 5. I thinks it because startcamera run on main thread.
I am experiencing the same issue. My app locks up after taking a picture from the service.
Same as me. I tried to use other thread instead of main looper but service cannot get image data from that thread.
I have the same problem. When takes the picture freeze the application. Android version: 8 CameraConfig: REAR_FACING_CAMERA
Same problem here in Android 8 , Any Idea ???
Same here. Android 8.
I think the camera.open is launching on main thread and thats why its blocking UI and leading to lags..try https://github.com/KAditi/Camera-Application. It gives no problem; it uses asynctask.
I have the same problem. When takes the picture freeze the application. Android version: 8 CameraConfig: REAR_FACING_CAMERA
I think some changes in HiddenCameraService.java can solve this issue.
Change this line (in HiddenCameraService.java, line 130)
WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
to a line
WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE
@gaynor @sknepal @shobhan1595 ☝🏻try this too
@kevalpatel2106 What you think about this? Can we make a change?