JSON type mismatch or org.json.jsonecxeption
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The link is http://iipacademy.in/askpoll/ten_feed.php exception is in onPostExecute() method (4th line) : Log.i("result", result); try { if (result != null) { JSONArray jsonArray = new JSONArray(result); // erreor for (int i = 0; i LOGCAT: 12-18 03:20:45.447: W/System.err(2790): org.json.JSONException: Value response of type java.lang.String cannot be converted to JSONArray 12-18 03:20:45.447: W/System.err(2790): at org.json.JSON.typeMismatch(JSON.java:111) 12-18 03:20:45.447: W/System.err(2790): at org.json.JSONArray. (JSONArray.java:91) 12