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

Fake surface not getting removed. Not able to do anything on phone after picture is clicked #36

Open
Kunal1093 opened this issue Jun 16, 2018 · 10 comments

Comments

@Kunal1093
Copy link

Kunal1093 commented Jun 16, 2018

In O OS, after the picture is clicked in service, I am not able to access the device until I restart it. I think the fake surface is not getting removed as I am not able to swipe or open any other app, but I am able to access notification panel and also notification is showing in notification panel that my app is displaying over other apps continuously. Please help

@Rloguzzo
Copy link

Rloguzzo commented Sep 5, 2018

up

@in-skyadav
Copy link

I am getting the same error, once I took the picture touch on whole window view is disabled and I am not able to do anything...
only notification panel and bottom navigation bar touch is working.

@androidnoob123
Copy link

Hi guys, I had similar problems with this library. I used the one linked below instead and it worked fine for me in Android 0. See the closed issue over there where I have posted how to make it take multiple pictures.

https://github.com/KAditi/Camera-Application

Regarding the window view disabled problem, I think the camera open (or maybe something else?) is working on the main thread and its blocking the UI. The source code for the above app is similar (although AsyncTask is used) so you may be able to solve it by looking into its source code. Hope it works for you!

@al-shivani
Copy link

al-shivani commented Dec 21, 2018

I am facing the same issue, but the sample app is working fine.
@Kunal1093 did you get any other solution for this.

@Pognio10
Copy link

does anyone have a solution?

@tjhannes
Copy link

I had the same issue but using the latest version from this repo and including it as a project helps
implementation project(':hiddencamera')

@kalakoff
Copy link

any solution for this issue?

@tjhannes
Copy link

tjhannes commented Feb 4, 2019

Yes, just use the most recent files from the github repo (instead of version 1.3.3 as mentioned in the readme instructions). Now everything works fine for me

@al-shivani
Copy link

Hi tjhannes

I did the same, Its working good for all devices except OnePlus 5. Do you have any solution for same?

@tjhannes
Copy link

tjhannes commented Feb 4, 2019

I tested it only on Huawei P20, not sure about other devices

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

8 participants