Open Pognio10 opened 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?
Use this to handle your problem
new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { YOUR_CODE_HERE } });
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?