-
Notifications
You must be signed in to change notification settings - Fork 155
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
App get lag when start camera from service #27
Comments
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. |
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 think some changes in HiddenCameraService.java can solve this issue. Change this line (in HiddenCameraService.java, line 130) @gaynor @sknepal @shobhan1595 ☝🏻try this too @kevalpatel2106 What you think about this? Can we make a change? |
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.
The text was updated successfully, but these errors were encountered: