MySQL Database


 

Step 1 : Select File -> New -> Project -> Android Application Project. Fill the forms, create “Blank Activity” and click “Finish” button.

Step 2 : Open res -> layout -> activity_main.xml and add following code :

Step 3 : Open src -> package -> MainActivity.java and add following code :

Step 4 : Open src -> package -> Create new class, MyHttpURLConnection.java and add following code :

Step 5 : Open src -> package -> Create new class, MyHttpURLConnection.java and add following code :

Step 6 : Open AndroidManifest.xml and add following code :

Step 7 : Open build.gradle(Module: app) and add following code :

Step 8 : Server Side : demo.php :

Step 9 : Server Side : MySQL Table :

 

ScreenShots:

 mysql database connection mysql database connection2

Download_button