안녕하세요^^ 패키지 미설치시 아래와 같이 json 파싱을 하려고 합니다.
로그에 아무것도 안찍히는데 왜 그런지 모르겠습니당ㅠ
도와주세요~
boolean isInstalled = isPackageInstalled("aio.co.kr");
if(value == 2 && isInstalled){
Log.d("Sample", "설치완료");
}else{
Log.d("Sample", "미설치");
String jsonString = "";
URL jsonString1 = null;
try {
try {
jsonString1 = new URL("http://www");
} catch (MalformedURLException e) {
e.printStackTrace();
}
JSONObject json = new JSONObject(jsonString);
for (int i = 0; i<json.length(); i++){
String result = json.getString("result");
String url = json.getString("url");
Log.d("RESULT", result);
Log.d("APPURL", url);
}
} catch (JSONException e) {
e.printStackTrace();
}
}