android-hidden-camera icon indicating copy to clipboard operation
android-hidden-camera copied to clipboard

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

Open Kunal1093 opened this issue 6 years ago • 10 comments

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

Kunal1093 avatar Jun 16 '18 10:06 Kunal1093

up

Rloguzzo avatar Sep 05 '18 02:09 Rloguzzo

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.

in-skyadav avatar Oct 17 '18 06:10 in-skyadav

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!

androidnoob123 avatar Oct 18 '18 21:10 androidnoob123

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

al-shivani avatar Dec 21 '18 07:12 al-shivani

does anyone have a solution?

Pognio10 avatar Dec 24 '18 14:12 Pognio10

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

tjhannes avatar Jan 24 '19 13:01 tjhannes

any solution for this issue?

kalakoff avatar Jan 31 '19 23:01 kalakoff

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

tjhannes avatar Feb 04 '19 09:02 tjhannes

Hi tjhannes

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

al-shivani avatar Feb 04 '19 09:02 al-shivani

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

tjhannes avatar Feb 04 '19 09:02 tjhannes