Error with volley

1

what happens is that when executing from the android this code

what happens is that when executing it, it generates the following error message

but if I run in the browser I send the corresponding data, it works for me

this is the php code I really do not see why. I have another activity and it works correctly

    
asked by KiN-n ZiLviN-n 24.01.2018 в 18:27
source

1 answer

1

The error you get:

  

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

is because the response you get and try to parse as JSON is not really a JSON structure.

Ensure that the response you get from the request is actually a json structure.

    
answered by 24.01.2018 в 18:33