The. nomedia file or folder in Android ICS2 is used to shield files from appearing in the image library or ringtones.

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.