Java tutorial
//package com.java2s; import java.io.File; import java.io.IOException; import android.util.Log; public class Main { public static String getAbsPath(File file) { String path = null; try { path = file.getCanonicalPath(); } catch (IOException e) { path = file.getAbsolutePath(); Log.i("[explorer():]", e.toString()); } return path; } }