Android : Get parameter from android method

on Friday, September 19, 2014


I have this method to scan file media after taking a shot with my app:



public static void refreshMedia() {
MediaScannerConnection.scanFile(this,
new String[] { photo.toString() }, null,
new MediaScannerConnection.OnScanCompletedListener() {
public void onScanCompleted(String path, Uri uri) {
Log.i("ExternalStorage", "Scanned " + path + ":");
Log.i("ExternalStorage", "-> uri=" + uri);
}
});
}


Now i need to retrive the uri that is a parameter of this method.. how can i do it? Because i need use the uri in another class..


0 comments:

Post a Comment