Re: [android-developers] Re: refresh the gallery without restart the emulator
On Sat, Apr 9, 2011 at 7:47 PM, cervello <eceoozmen@gmail.com> wrote:
> But in onScanCompleted one of the parameter is the uri..Shouldn't I
> use this function?
If you use the other flavor of scanFile, one that takes a
MediaScannerConnection.OnScanCompletedListener object, you will need
to implement onScanCompleted() in that listener.
You would use the Uri if you wanted to query the MediaStore to get
more information about the file that was scanned. Or, if it is null,
the file was not scanned for some reason (corrupt?).
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Warescription: Three Android Books, Plus Updates, One Low Price!
--
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