Code example for MediaScannerConnection

Methods: scanFile

0
		return null; 
	} 
 
	@Override 
	public void onMediaScannerConnected() { 
		mConnection.scanFile(mPath, mMimeType);
	} 
 
	@Override 
	public void onScanCompleted(final String path, final Uri uri) {
		try { 
			if (mCallback != null) {
				mHandler.post(new Runnable() {
					public void run() { 
						mCallback.ready(path, uri);
					} 
				}); 
			} 
		} finally { 
			mConnection.disconnect();
			mContext = null;