Skip to content
Advertisement

Volley jsonObjectRequest with parameter not working

Hello i am trying to send a parameter with my volley request and then get a json file to use with my RecyclerView. I have tested this without parameters and i am getting the expected result but with the parameter i do not get anything back.

JavaScript

What i am trying to figure out is if my code for the volley request has an error, or if the error is elsewhere in my project.

(for reference, this is where i want to make use of the paramater in my php file)

JavaScript

Advertisement

Answer

Fixed my problem by adding this under the errorResponse

JavaScript

And also changing my php to this

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement