to top
Android APIs
Added in API level 8
public static interface

MediaScannerConnection.OnScanCompletedListener

android.media.MediaScannerConnection.OnScanCompletedListener
Known Indirect Subclasses

Class Overview

Interface for notifying clients of the result of scanning a requested media file.

Summary

Public Methods

? Examples
abstract void onScanCompleted( String path, Uri uri)
Called to notify the client when the media scanner has finished scanning a file.

Public Methods

public abstract void onScanCompleted (String path, Uri uri)

Added in API level 8

Called to notify the client when the media scanner has finished scanning a file.

Parameters
path the path to the file that has been scanned.
uri the Uri for the file if the scanning operation succeeded and the file was added to the media database, or null if scanning failed.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.