org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject

后端 未结 5 2201
孤独总比滥情好
孤独总比滥情好 2020-11-29 11:11

I m trying to do a registration page from an android activity connectiong the datas to my sqldatabase, I m getting this error \" org.json.JSONException: Value

First of

5条回答
  •  粉色の甜心
    2020-11-29 11:38

    Your request to http://192.168.1.101/spotnshare/subscribe.php is failing and returning a non-JSON string (probably a PHP error). You can print out the value with a

    Log.i("tagconvertstr", "["+result+"]");

    before the new JSONObject call to see what you're getting before parsing it.

    EDIT: if you are using Eclipse you can set a break point and step through to see what's going on.

提交回复
热议问题