Uri转换为String类型

来源:互联网 发布:猫玩网络 编辑:程序博客网 时间:2024/05/11 20:07

URI有自己的getPath方法,直接返回的就是解码后的String路径 

Uri uri = null;

//转换为String类型

url.getPath();

System.out.print(url.getPath());
0 0