Created an app that takes picture and uploads it to my pc. But I need to delete it from phone after it was uploaded.
File file = new File(String.valueOf(photoURI));
file.delete();
Tryed using that but it didn't helped me.
Full code: https://pastebin.com/mvdjRULa