Example usage for android.media MediaScannerConnection MediaScannerConnection

List of usage examples for android.media MediaScannerConnection MediaScannerConnection

Introduction

In this page you can find the example usage for android.media MediaScannerConnection MediaScannerConnection.

Prototype

public MediaScannerConnection(Context context, MediaScannerConnectionClient client) 

Source Link

Document

Constructs a new MediaScannerConnection object.

Usage

From source file:com.cordova.photo.CameraLauncher.java

private void scanForGallery(Uri newImage) {
    this.scanMe = newImage;
    if (this.conn != null) {
        this.conn.disconnect();
    }/*from  w  w w. j  a  v a  2s  .com*/
    this.conn = new MediaScannerConnection(this.activity.getApplicationContext(), this);
    conn.connect();
}