Locus Map - forum

Support => Wishlist => Implemented => Topic started by: Gammalerik on September 16, 2011, 10:45:34

Title: Icons that appear in android gallery
Post by: Gammalerik on September 16, 2011, 10:45:34
I have a minor little tip for coming updates. All the tiny icons in Locus do appear in gallery, and an easy way to avoid this is to create a simple file which contains absolutely nothing. This file has to be called .nomedia and put in the folders that contains icons and/or pictures.

For those who would like to do this themselves, just search your phone for this file and copy-paste with your favorite explorer into the folders that appear in Locus. Your phone is littered with this file in other apps and games.
Title: Re: Icons that appear in android gallery
Post by: wvb on September 16, 2011, 11:36:26
Thanks for the tip!

Sent from my GT-I9100 using Tapatalk
Title: Re: Icons that appear in android gallery
Post by: Menion on September 16, 2011, 14:11:08
yes nice tip. I already hear about it from someone ...

so Locus now add automatically this files into

locus/cache/customScreen
locus/cache/images
locus/data/nav_audio
locus/icons

directories ;)
Title: Re: Icons that appear in android gallery
Post by: wvb on September 16, 2011, 15:23:10
Yay, thanks for the fast action :)

Sent from my GT-I9100 using Tapatalk
Title: Re: Icons that appear in android gallery
Post by: berkley on September 18, 2011, 16:09:37
Quote from: "menion"yes nice tip. I already hear about it from someone ...

so Locus now add automatically this files into

locus/cache/customScreen
locus/cache/images
locus/data/nav_audio
locus/icons

directories ;)

Would you be so nice and put this file also in "locus/mapsOnline/custom"?

 :mrgreen:
Title: Re: Icons that appear in android gallery
Post by: Menion on September 18, 2011, 17:18:55
eh, yes .. added :)
Title: Re: Icons that appear in android gallery
Post by: rijackson741 on September 18, 2011, 18:48:41
I think if you just put the file in the locus directory, it applies to all subdirectories too.
Title: Re: Icons that appear in android gallery
Post by: Menion on September 18, 2011, 18:58:52
really? I don't think so. Didn't tested but should be weird system by my opinion ... and also, I don't want to exclude directories that store photos taken by camera called from locus ...
Title: Re: Icons that appear in android gallery
Post by: rijackson741 on September 18, 2011, 20:38:56
Quote from: "menion"really?
Yes.

Quote from: "menion"I don't think so. Didn't tested
I did though  ;)

Quote from: "menion"but should be weird system by my opinion ...
I think that depends on how you look at it. I have another mapping app (Aura) that has a voices directory with 37 subdirectories for different languages. It's much easier to have one .nomedia file than 37, one for each Subdirectory. In fact, the .nomedia file is one level higher than the voices directory, and also deals with all the icons and avatars in other directories.

Quote from: "menion"and also, I don't want to exclude directories that store photos taken by camera called from locus ...
That's a good point.
Title: Re: Icons that appear in android gallery
Post by: Menion on September 18, 2011, 21:10:33
fine, thanks :) very good to know. Anyway because there is not much subdirectories with images, I think that current system is fine for locus, so I put into four or fine directories, this .nomedia file, to keep some other directories with photo images, to appear in media gallery
Title: Re: Icons that appear in android gallery
Post by: berkley on September 18, 2011, 22:27:14
Quote from: "menion"eh, yes .. added :)

Thanks for this. So i don't need to make an update for all that country flags appearing in the gallery...  :geek:
Title: Re: Icons that appear in android gallery
Post by: arnor on August 25, 2021, 15:56:15
I see now in gallery these pictures from Locus 4 in directory /locus/cache/map/vector/svg

Is there something wrong ?
Title: Re: Icons that appear in android gallery
Post by: Menion on August 26, 2021, 19:36:21
Hello, interesting. As I see, the app should (and on my device it really happens) create a special ".nomedia" file in this directory so such files should not be added to the gallery. Does this file exists in this directory? If no, simply create it manually.
Title: Re: Icons that appear in android gallery
Post by: arnor on August 26, 2021, 21:44:45
I did create now. It was not there.
Title: Re: Icons that appear in android gallery
Post by: Menion on August 27, 2021, 09:51:16
Missing? Interesting. I'm checking it again and do not see the reason why this should happen. Anyway fine, I hope this solves the gallery issue.
Title: Re: Icons that appear in android gallery
Post by: freischneider on August 27, 2021, 11:18:46
I also had these pictures from the folder in my gallery. I deleted it from the gallery. Was that a mistake? What exactly do I have to do with nomedia?
Title: Re: Icons that appear in android gallery
Post by: michaelbechtold on August 27, 2021, 11:31:55
.nomedia is simply a convention in Android to make gallery apps skip folders from analysis/display.
So you should not delete in Gallery for thsi reason.
Title: Re: Icons that appear in android gallery
Post by: freischneider on August 27, 2021, 12:09:48
What do I have to do now ?
Title: Re: Icons that appear in android gallery
Post by: michaelbechtold on August 27, 2021, 12:59:13
Depends: if your gallery simply HIDES those images, then the gallery even might have added the .nomedia file (just have a look there). If the gallery DELETED the images, thee is nothing to hide anymore for now. But you might want to see those Icons in the future and re-install them ? Then make sure you have the .nomedia in their folder.
Title: Re: Icons that appear in android gallery
Post by: freischneider on August 28, 2021, 12:37:04
Did not work.
I found the file in a backup and copied it. During the reinstallation I had copied the Locus folder as the original and saved it.
I restarted the device afterwards.
Title: Re: Icons that appear in android gallery
Post by: Menion on August 30, 2021, 06:44:18
Not sure if there is more that may be done here. ".nomedia" file is a generic solution used not just on Android devices to prevent media scanners from using the content of this directory. And it should work on all cases. I may only assume it is some kind of caching problem with your media app.