1. Download our Official Android App: Forums for Android!

Support Configure the auto media scanning to ignore certain folders or certain files(ex *.3gp))

Discussion in 'Android Devices' started by terminator1618, Sep 13, 2011.

  1. terminator1618

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 13, 2011

    Sep 13, 2011
    2
    0
    5
    Hi. I use a call recorder software to make recording of certain calls and it stores them as *.3gp files in its own separate folder. I also have huge collection of songs(mostly mp3s and some videos) which i maintain in a separate folder. I only use the internal memory of my S2 as i find that quite sufficient.
    The automatic media scanning that takes place scans all the memory for media files and includes all the audio files in the preinstalled music player. This causes a problem as all the songs and the audio recordings appear in the music players library. So whenever i play music with the shuffle activated, sometimes the recordings start playing
    I was wondering if there was a way to configure the media scanning to (say),
    1. exclude a certain folder from the scan, or
    2. scan ONLY a certain folder for media, or
    3. exclude certain file extensions, or
    I was hoping someone wud help me out with this problem.
     

    Advertisement

  2. Slug

    Slug Check six!
    Moderator
    Rank:
    None
    Points:
    2,043
    Posts:
    20,549
    Joined:
    Aug 1, 2009

    Aug 1, 2009
    20,549
    17,001
    2,043
    Male
    Mobile phone retail
    Inverness, UK
    Create an empty text file named ".nomedia" (the leading period is crucial) and copy it to each folder you wish to exclude.
     
    terminator1618 likes this.
  3. ironass

    ironass Android Expert
    Rank:
     #21
    Points:
    1,343
    Posts:
    11,456
    Joined:
    Aug 17, 2010

    Aug 17, 2010
    11,456
    5,676
    1,343
    Male
    Keeping one step ahead of the tax man.
    Cotswolds, England
    +1 for slug's suggestion.

    Alternatively you could download, free from the Market, OI File Manager and after setting "Exclude from media scan" in its settings, navigate to the folders that you wish to hide and choose "Exclude from media scan" in its Menu options. It then creates the file that slug mentions.
     
    terminator1618 likes this.
  4. terminator1618

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 13, 2011

    Sep 13, 2011
    2
    0
    5
    Thanks guys, it worked perfectly. I guess that solves my problem entirely. :)
     
  5. cyberpine

    cyberpine Well-Known Member
    Rank:
    None
    Points:
    36
    Posts:
    164
    Joined:
    Jun 14, 2010

    Jun 14, 2010
    164
    2
    36
    This is not working on my Samsung Galaxy 2 for mp4 files produced by my phones recorder. I tried adding the .nomedia file. Also tried renaming the folder and files with a dot prefix. Rebooted and they still show up on Samsungs and Google music players.
     
  6. PeterMcC

    PeterMcC Newbie
    Rank:
    None
    Points:
    15
    Posts:
    19
    Joined:
    Jul 25, 2011

    Jul 25, 2011
    19
    0
    15
    Projects Director
    London, UK
    Not working for me either. I think it used to work but now the .nomedia file seems to have no effect even after a reboot.
    :thinking:
     
  7. treii28

    treii28 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Feb 24, 2012

    Feb 24, 2012
    4
    0
    5
    I have a problem that is not solvable by this solution, and I'm wondering if anyone has any suggestions. For some reason the media scanner is looking under BOTH the /mnt/media_rw AND under /storage to find media files. As a result, any songs I put on my sdcard end up showing up twice in the media list. e.g. as /media_rw/extSdCard/Music/my_song.mp3 and as /storage/extSdCard/Music/my_song.mp3

    Obviously I can't just drop a .nomedia in one location as both are pointing to the same location and dropping it in one will cause it to be ignored in both. Now my phone is rooted and I tried dropping a .nomedia file outside of the extSdCard directory in one of the folders and that does work but only lasts until the phone is rebooted at which point the .nomedia file disappears.
     

Share This Page

Loading...