Thisishowwedoit-2Moons
Thisishowwedoit-2Moons
see solution here https://github.com/kevalpatel2106/android-hidden-camera/issues/29#issuecomment-453997806
Do not forget to add WRITE_EXTERNAL_STORAGE and READ_EXTERNAL_STORAGE permsissions and to add the file autority provider to work aswell as expected by android `@Override public void onImageCapture(@NonNull File imageFile) {...
Use this to handle your problem ``` new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { YOUR_CODE_HERE } }); ```