JSON parsing in android using PHP and MySql

JSON parsing in android using PHP and MySqli




we are going to learn how to create JSON parsing in android using PHP and mysql. JSON is light weight and a great alternative to xml. In this android application we will learn how to get json response from a server and json response is generated by PHP and mysql.



Android

JSON parsing in android using PHP and MySql
Project Structure

AndroidManifest.xml

In Android Mainfest file we will add the internet permission so that our app can access the internet to fetch the json response from the server.
[xml]










[/xml]

activity_main.xml

In this file we will create layout for your app. We have a Button and a TextView. When every the Button is clicked we will fetch JSON response from the server and display it into the TextView
[xml]

4 thoughts on “JSON parsing in android using PHP and MySqli”

Leave a Reply

Your email address will not be published. Required fields are marked *