누군가가 왜 안드로이드 에서이 json 작동하지 알아? urlJsonAndroid에서 webservice Rest에서 Json을 읽는 중입니다. FileNotFoundException
결과는 FileNotFoundException이지만 탐색기에서 작동합니다.
편집 :
public static String readUrl(String urlString) throws Exception {
BufferedReader reader = null;
try{
URL url = new URL(urlString);
reader = new BufferedReader(new InputStreamReader (url.openStream()));
StringBuffer buffer = new StringBuffer();
int read;
char[]chars = new char[1024];
while ((read = reader.read(chars)) != -1)
buffer.append(chars, 0, read);
return buffer.toString();
} finally {
if (reader != null)
reader.close();
}
에는 코드가 포함되어 있습니다. –