On Tuesday, April 2, 2013 2:46:56 PM UTC-7, RichardC wrote: > > If you don't want your files scanned I think you're supposed to put a > ".nomedia" into the folder. > That is my thinking as well, but that causes the dilemma below.
> On Tuesday, April 2, 2013 10:18:37 PM UTC+1, Nathan wrote: >> >> >> I foresee certain problems with this scenario. >> To give the poor media scanner a break from sorting through lots of >> little files, I have included a .nomedia file in that folder. >> If that folder is being skipped, then a query to the mediaprovider will >> return false when the file actually exists. In some situations, this could >> cause me to redownload a file from a remote server that already exists. >> If the .nomedia is being ignored and it is scanning those folders, that >> puts a strain on the media scanner that I would rather avoid. >> > Which is only a dilemma, IF, as I suspect, java.io.File.exists() calls the Media Provider instead of checking the file system as I think that most devices do. Nathan -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

