kevalpatel2106 / android-hidden-camera

This library is to take picture using camera without camera preview.
Apache License 2.0
408 stars 155 forks source link

Take multiple photo background #48

Open Pognio10 opened 5 years ago

Pognio10 commented 5 years ago

I'm trying to take more pictures in the background every 5 seconds, but give me this error Can not create handler inside thread that has not called Looper.prepare ()

Has anyone tried to do something like this or did it?

Thisishowwedoit-2Moons commented 5 years ago

Use this to handle your problem

new Handler(Looper.getMainLooper()).post(new Runnable() {
    @Override
    public void run() {
        YOUR_CODE_HERE
    }
});