List of usage examples for android.media MediaScannerConnection MediaScannerConnection
public MediaScannerConnection(Context context, MediaScannerConnectionClient client)
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(); }