POST data to webapi in android app

We have to create one Http Controller to post our data into webapi.

after that we getting respone in json so we need to parse to use as per need so convert input Stream to string

then parse the data

here is full code


ASP.NET Web API brings many new features and many advantages over the older Microsoft AJAX and REST APIs, but realize that some things like passing multiple strongly typed object parameters will work a bit differently. It’s not insurmountable, but just knowing what options are available to simulate this behavior is good to know.

Now let me say this is traditional way and is very simple to post into any API or Web API. In new upcoming Andorid SDK deprecated many class like

so for fast and new Google developed a new fast and amazing libĀ for specially for android network access or API call is called volley


Dharmesh Sharma