Pretty nifty trick to declutter your gallery

    • tomatoely@sh.itjust.works楼主
      link
      fedilink
      English
      arrow-up
      13
      ·
      2 个月前

      …It is a hidden file (the leading dot conceals it in standard Android and Linux file listings) that informs the Android media scanner that the directory in which it is located does not hold multimedia files that should be displayed, such as images, videos, or audio.

      .nomedia files are used to hide the contents of directories so that they are not visible to media-aware apps - for instance, the system gallery or a music player. Placing one inside a folder prevents those apps from indexing and displaying its media. Removing the .nomedia file causes the media scanner to re-index the directory on its next pass.

          • the_riviera_kid@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            arrow-down
            4
            ·
            2 个月前

            If I hide a file with “.” my media gallery does not index it nor does my music player so no, I’m not. I’ve done it since my first android and never had anything index a hidden folder.

            • Æther@lemmy.world
              link
              fedilink
              English
              arrow-up
              9
              ·
              2 个月前

              But this post isn’t about hiding specific files, its about the .nomedia file that hides all of the photos/videos in the folder

              • the_riviera_kid@lemmy.world
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                4
                ·
                2 个月前

                Maybe, but hiding the folder does the same thing, as was my point. Maybe it didn’t get across but it doesn’t change it.

                • 🌞 Alexander Daychilde 🌞@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  6
                  arrow-down
                  1
                  ·
                  2 个月前

                  Again. You are talking about something different.

                  What if it’s a folder that cannot be renamed because an app needs the original name?

                  Your tip is useless in such cases.

                  And again. Is completely different.

                  Are you trolling? I’m beginning to suspect you must be.

    • atomicbocks@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      11
      ·
      2 个月前

      File not folder. .nomedia file goes in the folder you don’t want scanned unless I am very much misunderstanding.

      You can also make hidden folders and files by putting a period at the front of the name but that hides it from everything not just the media scanners.

      • the_riviera_kid@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 个月前

        Ah, thanks for the explination. The misunderstanding was on my end. I guess hiding the whole folder has always worked for me so I never questioned it.