am 3bb112ae: am f617797e: Merge "API Change: MediaScannerConnection.ScanResultListener -> MediaScannerConnection.OnScanCompletedListener." into froyo

This commit is contained in:
Ray Chen
2010-04-07 12:46:49 -07:00
committed by Android Git Automerger

View File

@@ -207,7 +207,7 @@ public class ExternalStorage extends Activity {
// immediately available to the user. // immediately available to the user.
MediaScannerConnection.scanFile(this, MediaScannerConnection.scanFile(this,
new String[] { file.toString() }, null, new String[] { file.toString() }, null,
new MediaScannerConnection.ScanResultListener() { new MediaScannerConnection.OnScanCompletedListener() {
public void onScanCompleted(String path, Uri uri) { public void onScanCompleted(String path, Uri uri) {
Log.i("ExternalStorage", "Scanned " + path + ":"); Log.i("ExternalStorage", "Scanned " + path + ":");
Log.i("ExternalStorage", "-> uri=" + uri); Log.i("ExternalStorage", "-> uri=" + uri);
@@ -271,7 +271,7 @@ public class ExternalStorage extends Activity {
// immediately available to the user. // immediately available to the user.
MediaScannerConnection.scanFile(this, MediaScannerConnection.scanFile(this,
new String[] { file.toString() }, null, new String[] { file.toString() }, null,
new MediaScannerConnection.ScanResultListener() { new MediaScannerConnection.OnScanCompletedListener() {
public void onScanCompleted(String path, Uri uri) { public void onScanCompleted(String path, Uri uri) {
Log.i("ExternalStorage", "Scanned " + path + ":"); Log.i("ExternalStorage", "Scanned " + path + ":");
Log.i("ExternalStorage", "-> uri=" + uri); Log.i("ExternalStorage", "-> uri=" + uri);