I\'m deleting a file as such
File fileToDelete = new File(\"filepath\");
Boolean fileDeleted = fileToDelete.delete();
The fileDeleted is
It is to do with how Gallery shows the Image files. Image file's Thumbnails are cached in the MediaStore and all the details are present in the Mediastore contentProvider.
Deleting the file will not update this database. But when you restart the emulator, Mediascanning is done by android. If MediaScanning can be triggered , gallery will stop showing the files