尝试从远程服务器获取图像和文本时,我收到文件未找到错误 错误: -
E/BitmapFactory(888): Unable to decode stream: java.io.FileNotFoundException: /http:/localhost/galerie/albums/userpics/10001/Water_lilies.jpg: open failed: ENOENT (No such file or directory)
01-03 11:06:15.159: E/BitmapFactory(888): Unable to decode stream: java.io.FileNotFoundException: /http:/localhost/galerie/albums/userpics/10001/thumb_1ce5b4759c0062faafc4a7c84c02fa99.jpg: open failed: ENOENT (No such file or directory)
url的Json输出是: -
{"cpg15x_pictures":[{"title":"Flowers","path":"http:\/\/localhost\/galerie\/albums\/userpics\/10001\/Water_lilies.jpg"},{"title":"Building","path":"http:\/\/localhost\/galerie\/albums\/userpics\/10001\/thumb_1ce5b4759c0062faafc4a7c84c02fa99.jpg"},{"title":"Test","path":"http:\/\/localhost\/galerie\/albums\/userpics\/10001\/Sunset.jpg"},{"title":"Food","path":"http:\/\/localhost\/galerie\/albums\/userpics\/10001\/f1.jpeg"}]}
我正在尝试填充列表视图,其中包含两个组件图像视图和文本视图。当我运行程序时,它会使用文本填充列表,但不会填充图像。 相反,logcat会填充错误。
我在stackoverflow上提到了其他相关问题来解决这个错误,但我能解决这个问题。
参考http://www.learn2crack.com/2013/11/listview-from-json-example.html
可以解决什么问题?
答案 0 :(得分:0)
我删除了额外的歌曲/错误得到修复