1. Download our Official Android App: Forums for Android!
  2. We apologize for the disruption in email services! They are sending out now, but there is a backlog, so it may take a little time to catch up.

General What's a nomedia file

Discussion in 'Android Devices' started by bigb3456, Mar 28, 2011.

  1. bigb3456

    bigb3456 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    71
    Joined:
    Jul 2, 2010

    Jul 2, 2010
    71
    2
    16
    Nebraska
    Seriously what is it
     

    Advertisement

  2. ardchoille

    ardchoille Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    3,684
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3,684
    1,940
    333
    Male
    Ordained Minister
    Seattle
    A .nomedia file is a blank file placed inside a folder. When the media scanner detects the .nomedia file, the media scanner does not scan that folder so the images in that folder don't appear in the Gallery app. It's a good way of having a folder full of images (like a skin for an app) and not have those images appear in the Gallery app. You can place a .nomedia file in any folder but the filename must begin with a period.

    Also, on a Linux system a "dotfile" (a file with a filename that begins with a period) is hidden from standard view, though most file managers have an option to allow viewing dotfiles. So the file is hidden from view and the images in that folder aren't cataloged in the Gallery app.
     
    pottasium likes this.
  3. bigb3456

    bigb3456 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    71
    Joined:
    Jul 2, 2010

    Jul 2, 2010
    71
    2
    16
    Nebraska
    If I stuck it in my folder called notifications would it hide those files in it from the music gallery
     
  4. ardchoille

    ardchoille Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    3,684
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3,684
    1,940
    333
    Male
    Ordained Minister
    Seattle
    I'm not sure, only one way to find out :) You can always delete the .nomedia file if it doesn't work.
     
    pottasium likes this.
  5. bigb3456

    bigb3456 Member
    Thread Starter
    Rank:
    None
    Points:
    16
    Posts:
    71
    Joined:
    Jul 2, 2010

    Jul 2, 2010
    71
    2
    16
    Nebraska
    Where can I generate a nomedia file
     
  6. ardchoille

    ardchoille Android Expert
    Rank:
    None
    Points:
    333
    Posts:
    3,684
    Joined:
    Mar 8, 2011

    Mar 8, 2011
    3,684
    1,940
    333
    Male
    Ordained Minister
    Seattle
    A .nomedia file is just a blank text file but has the filename of ".nomedia", any text editor can create a new file but make sure you save it with the .nomedia filename.
     
    pottasium and Lordvincent 90 like this.
  7. bevhoward

    bevhoward Lurker
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Nov 3, 2012

    Nov 3, 2012
    4
    0
    5
    fwiw, ES FileExplorer has the option to easily create a new blank file in any directory.

    Beverly Howard
     
  8. bevhoward

    bevhoward Lurker
    Rank:
    None
    Points:
    5
    Posts:
    4
    Joined:
    Nov 3, 2012

    Nov 3, 2012
    4
    0
    5
    Related question... is there a reference page that lists "period file" names for use in Linux ...my search syntax for this is not getting any results.

    Thanks in advance,
    Beverly Howard
     
  9. Wercik

    Wercik Lurker
    Rank:
    None
    Points:
    6
    Posts:
    2
    Joined:
    Nov 1, 2014

    Nov 1, 2014
    2
    1
    6
    And here's the reason behind the .nomedia files:
    It was Google Play's compliance policy (not sure if still is) that no internal app files should be unintentionally recognized by any of the media players/galleries. Hence the file, cheers.
     
    Podivin likes this.
  10. claudiq

    claudiq Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Mar 19, 2015

    Mar 19, 2015
    1
    0
    5
    What happens if I delete one?
     
  11. Wercik

    Wercik Lurker
    Rank:
    None
    Points:
    6
    Posts:
    2
    Joined:
    Nov 1, 2014

    Nov 1, 2014
    2
    1
    6
    Nothing bad. If it's in a folder with media files - your media browsers/players will start to read those files.
     
  12. Tanton

    Tanton Lurker
    Rank:
    None
    Points:
    15
    Posts:
    1
    Joined:
    May 30, 2015

    May 30, 2015
    1
    0
    15
    Female
    There must be a .nomedia file on my galaxy s4 which prevents some movies from playing on my media player. However i cannot locate a .nomedia file in the folder. How can i fix this?
     
  13. sdrawkcab25

    sdrawkcab25 Android Expert
    Rank:
     #67
    Points:
    423
    Posts:
    5,589
    Joined:
    Aug 5, 2010

    Aug 5, 2010
    5,589
    2,005
    423
    Male
    PA
    @Tanton .nomedia files keep the player from seeing the file, not from playing the file... Most likely it's an incompatible file... Try a player like MXplayer.
     
    Lordvincent 90 likes this.
  14. timbuk2

    timbuk2 Well-Known Member
    Rank:
     #788
    Points:
    36
    Posts:
    104
    Joined:
    Dec 16, 2010

    Dec 16, 2010
    104
    2
    36
    Oklahoma City
    How can one do away with this intrusive file? I can delete it, but it just reappears. It's NOT their music, it's mine. I bought it, downloaded it in Mp3 but cannot access it on android as I used to be able to. Thusly I cannot use any of the files as an alarm or ringtone.
     

Share This Page

Loading...