Back to project page videoMerge.
The source code is released under:
Apache License
If you think the Android project videoMerge listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dragonplayer.merge.utils; //w w w .j av a 2s . c o m import android.content.Context; import android.media.MediaScannerConnection; import android.net.Uri; import java.io.File; public class SingleMediaScanner implements android.media.MediaScannerConnection.MediaScannerConnectionClient { private File mFile; private MediaScannerConnection mMs; public SingleMediaScanner(Context context, File file) { mFile = file; mMs = new MediaScannerConnection(context, this); mMs.connect(); } public void onMediaScannerConnected() { mMs.scanFile(mFile.getAbsolutePath(), null); } public void onScanCompleted(String s, Uri uri) { mMs.disconnect(); } }