Re: [android-developers] Re: Don't show images in SD Card in Android Gallery
Kostya, thanks for the info, but as I'm targeting low specs androids also, I'll follow Hari suggestion (it's so simple and obvious that I'm ashamed of not thinking about it myself). Thanks for the help!!! PMD On 14 January 2011 17:18, Kostya Vasilyev wrote: > Create a file called .nomedia in the directory you're using to store > images. > > This is officially supported in 2.3, but, AFAIK, also works in earlier > versions. > > > http://developer.android.com/reference/android/provider/MediaStore.html#MEDIA_IGNORE_FILENAME > > -- Kostya > > 2011/1/14 Hari Edo > > >> Have you tried writing them with unusual filename extensions and other >> obfuscation? Your program may know it's a .png file but many media >> applications would likely ignore a file if it's got a .notpng >> extension. >> >> If you can delete them after first run, so much the better, but not >> necessary. >> >> On Jan 14, 12:03 pm, Pedro Duque wrote: >> > Hi, >> > >> > I'm developing an application that copies some pictures from assets to >> the >> > sd card on the first run to be able to change them. My problem is that >> these >> > pictures show in the user gallery when they don't have any interest >> (mainly >> > it's icons and 9 patchs pics). >> > >> > How can I tell Gallery that these folders are of no interest? >> > >> > Thanks, >> > Pedro Duque >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to android-developers@googlegroups.com >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com >> 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 post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Don't show images in SD Card in Android Gallery
Create a file called .nomedia in the directory you're using to store images. This is officially supported in 2.3, but, AFAIK, also works in earlier versions. http://developer.android.com/reference/android/provider/MediaStore.html#MEDIA_IGNORE_FILENAME -- Kostya 2011/1/14 Hari Edo > > Have you tried writing them with unusual filename extensions and other > obfuscation? Your program may know it's a .png file but many media > applications would likely ignore a file if it's got a .notpng > extension. > > If you can delete them after first run, so much the better, but not > necessary. > > On Jan 14, 12:03 pm, Pedro Duque wrote: > > Hi, > > > > I'm developing an application that copies some pictures from assets to > the > > sd card on the first run to be able to change them. My problem is that > these > > pictures show in the user gallery when they don't have any interest > (mainly > > it's icons and 9 patchs pics). > > > > How can I tell Gallery that these folders are of no interest? > > > > Thanks, > > Pedro Duque > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > 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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Don't show images in SD Card in Android Gallery
Have you tried writing them with unusual filename extensions and other obfuscation? Your program may know it's a .png file but many media applications would likely ignore a file if it's got a .notpng extension. If you can delete them after first run, so much the better, but not necessary. On Jan 14, 12:03 pm, Pedro Duque wrote: > Hi, > > I'm developing an application that copies some pictures from assets to the > sd card on the first run to be able to change them. My problem is that these > pictures show in the user gallery when they don't have any interest (mainly > it's icons and 9 patchs pics). > > How can I tell Gallery that these folders are of no interest? > > Thanks, > Pedro Duque -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en