Example usage for Java android.media MediaScannerConnection fields, constructors, methods, implement or subclass
The text is from its open source code.
MediaScannerConnection(Context context, MediaScannerConnectionClient client) Constructs a new MediaScannerConnection object. |
boolean | isConnected() Returns whether we are connected to the media scanner service |
void | scanFile(Context context, String[] paths, String[] mimeTypes, OnScanCompletedListener callback) Convenience for constructing a MediaScannerConnection , calling #connect on it, and calling #scanFile with the given path and mimeType when the connection is established. |
void | scanFile(String path, String mimeType) Requests the media scanner to scan a file. |