Monday, April 4, 2011

[android-developers] Re: Media Scanner failing on

That got it, thanks!

On Apr 4, 4:00 pm, Robin Talwar <r.o.b.i.n.abhis...@gmail.com> wrote:
> http://stackoverflow.com/questions/5250515/how-to-update-the-android-...
>
> the link says about media scanning so you can relate to your problem also,
> its almost the same
>
> On Sun, Apr 3, 2011 at 9:56 AM, Chinmay S <cvs...@gmail.com> wrote:
> > Hi Paul,
>
> > As you suspect, the gallery depends on the mediascanner to update the list
> > of files.
>
> > The samsung MyFiles app will rescan/refresh the contents of a directory
> > every time you re-open the app.
>
> > To "force" a mediascanner update on a directory, you might want to use *
> > scanFile*.
>
> >http://developer.android.com/reference/android/media/MediaScannerConn...
> > public static void *scanFile* (Context *context*, String[] *paths*,
> > String[] *mimeTypes*,
> > MediaScannerConnection.OnScanCompletedListener *callback*) Alternately u
> > can use a broadcast intent for the same purpose:
>
> >http://developer.android.com/reference/android/content/Intent.html#AC...
>
> > Also note that by default, "internal" data of any app is considered
> > private,
> > and mediascanner won't scan the app's private directory for media files:
>
> >http://developer.android.com/guide/topics/data/data-storage.html#file...
>
> > regards
> > CVS
>
> >  --
> > 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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate