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 <[email protected]>

>
> 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 <[email protected]> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[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 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

Reply via email to