使用Java的Android赢得';使用picasa相关性显示图像 java代码中用于检索图像路径的代码行 我的JSON文件
去掉反斜杠使用Java的Android赢得';使用picasa相关性显示图像 java代码中用于检索图像路径的代码行 我的JSON文件,java,android,Java,Android,去掉反斜杠 jsonObject.getString("image").replace("\\",""); 这一行适用于Picasso.with(context).load(“;这一行不适用于Picasso.with(context).load(“localpath/image.jpg”))。到(holder.imageView);我想显示计算机存储器中的图像,如何使用Picasso实现这一点 "image":
jsonObject.getString("image").replace("\\","");
这一行适用于Picasso.with(context).load(“;这一行不适用于Picasso.with(context).load(“localpath/image.jpg”))。到(holder.imageView);我想显示计算机存储器中的图像,如何使用Picasso实现这一点
"image":"/Users/jz/Desktop/RwandanMeal/Omellete.jpg"
} ```
## Result in logcat
``` {
"image":"\/Users\/jz\/Desktop\/RwandanMeal\/ugari.jpg"
} ```
As you see my path has been manipulated and it could be the reason
jsonObject.getString("image").replace("\\","");