In my Android app, I used Volley to make a POST request with the following code snippet. JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Method.POST, ServerURL.URL_REGISTER, new Response.Listener<JSONObject>() { @Override public ...
I'm currently working on an Android/Java app where I need to make a REST API call using the Volley library. Here's the code I have so far: RequestQueue queue = Volley.newRequestQueue(this); String url ="https://covid19datasl.herokuapp.com/countrie ...
I am using these classes, and they were working fine with some static data. Here is the JSON response I received: [{"place_name":"Udon House"},{"place_name":"Casa Biance"},{"place_name":"Pizza hut"},{"place_name":"Pearl Continental "},{"place_name":"Laho ...
Hey folks, I could really use some assistance! I'm a beginner with Volley and have been tackling login and registration using it. Specifically, I'm struggling with inserting and retrieving data in the database using JSON arrays and objects. Below are my ...
Is it possible to parse a URL with curly brackets, like http://example.com/api/login/{username}/{password}, in an Android application? A regular Volley post request returns HTML, but I require JSON format. How can the Login API be integrated into an Andr ...
When attempting to access this function through WiFi, it works fine. However, when using a mobile network, I encounter the following error: D/Volley: [3641] BasicNetwork.logSlowRequests: HTTP response for request=<[ ] 0x95bac5ee NORMAL 14> * 2020-0 ...
Currently, I am utilizing the Volley Library to parse JSON data. However, when parsing the response, it contains a certain symbol at the beginning: JSON RESPONSE : {"category":{"420":{"key":420,"label":{"420":"Acacia"},"count":"1"},"421":{"key":421 ...
When I send the data using POST method, I receive the answer in JSON format. However, if I switch to plain text instead of JSON, it works fine but not with JSON. No error message is displayed in the application. If status = true -> Registration successfu ...
I'm encountering an issue with my web service that is supposed to return a list of images (profile pictures), along with their names and ID numbers. Unfortunately, some members do not have profile pictures, so I am trying to add a default image from t ...
Utilizing Volley for fetching JSON data to populate a RecyclerView list, the initial JSON file provides information such as: id server status If a new JSON is requested using "Server URL/server/id," additional information about the server/item can be ob ...
I am having an issue with setting a default prompt to the spinner in my Android Studio app using MySQL. I have tried setting the same value from XML with the spinner attribute for prompt, but it is not working properly. Here is my code snippet: public sta ...
I am working with a utf-8 json file and I need to ensure it is properly displayed with utf-8 support. output = (TextView) view.findViewById(R.id.jData); JsonObjectRequest jor = new JsonObjectRequest(Request.Method.GET, loginURL, null, new ...
I've been attempting to parse JSON using Volley and display it with a recycler-card view in my tabbed fragment class on Android. However, the JSON response is not being displayed in the fragment. Despite no errors or exceptions showing up, the app runs smo ...
I am in the process of creating an Android application that retrieves product data from a WordPress site. The website has the Woocommerce plugin installed. I have been able to successfully obtain the JSON data using Postman software and basic authenticat ...
Currently, I am conducting a basic test to display JSON data fetched from PHP MySQLi in a TextView. TextView mTxtDisplay; String url = "http://192.168.1.102/web_service/test.php/"; @Override protected void onCreate(Bundle savedInstanceState) { super ...
how to send Authorization header using volley library in android for GET method please help me thank you public void token(){ SharedPreferences userInfo = getActivity().getSharedPreferences(DataManager.SharedPreferences, Context.MODE_PRIVATE); S ...
I am looking to populate a RecyclerView with project data from a specific category only. For instance, in the JSON provided, there are 2 projects in the "Cabs" category, so I want to include only these 2 projects. Conversely, if the category is equal to "T ...
Having trouble parsing the JSON response from the following link: and no matter what I try, I keep getting this error message. W/System.err: Unexpected character () at position 0. public class MainActivity extends AppCompatActivity { Text ...
I'm currently facing some confusion after asking a question regarding JSON decoding on the PHP side. My focus is on decoding a JSONObject posted from Android Volley using StringRequest. While I successfully created code for inserting data into MySql, I ove ...
I am trying to send a JSON payload via a server POST request and receive a string response. After researching extensively, it appears that doing this with the Volley library is not straightforward unless I create a custom request (which I find daunting). ...
Currently, I am working on an Android App using Android Studio and the backend is being developed using Asp.Net Web API. Web Api Part [System.Web.Http.AcceptVerbs("GET", "POST")] [System.Web.Http.HttpGet] public dynamic GetTest(string name) { List< ...