Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

MediaScannerConnection.MediaScannerConnectionClient

implements MediaScannerConnection.OnScanCompletedListener
android.media.MediaScannerConnection.MediaScannerConnectionClient

Class Overview

An interface for notifying clients of MediaScannerConnection when a connection to the MediaScanner service has been established and when the scanning of a file has completed.

Summary

Public Methods
abstract void onMediaScannerConnected ()
Called to notify the client when a connection to the MediaScanner service has been established.
abstract void onScanCompleted ( String path, Uri uri)
Called to notify the client when the media scanner has finished scanning a file.
[Expand]
Inherited Methods
From interface android.media.MediaScannerConnection.OnScanCompletedListener

Public Methods

public abstract void onMediaScannerConnected ()

Added in API level 1

Called to notify the client when a connection to the MediaScanner service has been established.

public abstract void onScanCompleted ( String path, Uri uri)

Added in API level 1

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.