Android: how to delete internal image file
What i want to do: delete an image file from the private internal storage in my app. I save images in internal storage so they are deleted on app uninstall. I have successfully created and saved: String imageName = System.currentTimeMillis() + ".jpeg"; FileOutputStream fos = openFileOutput(imageName, Context.MODE_PRIVATE); bitmap.compress(Bitmap.CompressFormat.JPEG, 35, fos); an image that i receive through bitmap = BitmapFactory.decodeStream(inputStream); I am able to retrieve the image later for display: FileInputStream fis = openFileInput(imageName); ByteArrayOutputStream bufStream = new