Retrieving Content Uri using File Provider fails
问题 I have spent days reading the docs and following various tutorials for this but I am getting errors whatever I do. I am trying to save an image in Internal Storage and then convert it to a content Uri so that I can use the system crop and resize function. If anyone could spot where my code is wrong I would be very grateful: Main Activity: new Thread(() -> { try { String temp = "temp"; //Convert bitmap to byte array ByteArrayOutputStream bos = new ByteArrayOutputStream(); bitmap.compress