http://blog.csdn.net/zqchn/article/details/8770913的补充
FileUtils文件
public class FileUtils
public static String
if ( "content" .equalsIgnoreCase(uri.getScheme()))
String[] "_data" };
Cursor null ;
try {
cursor null , null , null );
int column_index "_data" );
if (cursor.moveToFirst())
return cursor.getString(column_index);
}
} catch (Exception
//
}
}
else if ( "file" .equalsIgnoreCase(uri.getScheme()))
return uri.getPath();
}
return null ;
}
}
|