The company has a 16 gb sd card. After it is put on the mobile phone, the image library has never been flushed out. at first, it was thought that the SD card was very big and it took some time to scan. but the next day, there was still no card in the Image Library. that's strange. The SD card clearly has images. Why is the image not shown in the Image Library. check the log and find the SD card scanned again. there are also images scanned logs. I thought it was a problem with the image display in the Image Library. view the multimedia database com. android. provider. media/databases/external. db file. there are indeed many images. however, media_type is 0. while mime_type is both image /*. media_type = 0 is a normal file (Note: media_type value 0: normal file, 1: Image File, 2: audio file, 3: video file )). the image library displays files (media_type = 1 or media_type = 3. later, I found that I was not sure to be put in the SD card. nomedia file. as a result, the media_type of the scanned multimedia file is set to 0 during the android multimedia scan. the Image Library only displays 1 or 3 files. therefore, the multimedia files in the SD card will not be displayed in the Image Library.
About the android. nomedia file:
. Nomedia file: Images in the application are not scanned by the System Image Library. when the nomedia file is placed in any folder, all the media files (images, mp3, and videos) in the folder are hidden from the System Image Library and the ringtones appear.
1. You cannot create a new. nomedia File in Windows. The method is Java new File (dir, ". nomedia"). createNewFile ();
2. CMD command line copy con. nomedia press enter, and a cursor is blinking on the screen, indicating that you are waiting for you to enter the file content. If you want to create an empty content file, nothing is entered here, press ctrl + Z and press enter to generate an empty file.