Android MySQL : Save Multiple Columns From EditText
Android PHP MySQL MultiColumn Save tutorial source code reference.
What We Do:
- Connect to MySQL database from android application.
- We use HttpURLConnection as our Networking class.
- We make a HTTP POST Request.
- We use PHP as our server side language.
- And MySQL as our database.We are using Wamp Server as our database administration tool.
- We post data to server via HttpURLConnection and receive a connection response from PHP
- Because this is a networking call,we do it in the background thread using AsyncTask.
- Meanwhile we are showing the progress dialog.
- When our call is over we dismiss the progress dialog.
Main Classes :
- MainActivity deriving from support library's AppCompatActivity class.
- Connector class using java.net.HttpURLConnection to connect to network.
- SenderReceiver classe inheriting from AsyncTask.We make our POST request here in the background thread.
- We receive a response whether it was success or not.
- If success we clear our edittexts.
We have this tutorial in the video format in our channel : ProgrammingWizards.
Over there we first show the demo,then explain everything step by step.This is now the source code reference for that particular tutorial.Anyway We shall however convert it to text article in in the near future.If you visit our channel please subscribe so that you never miss our tutorials.We have over 600 video tutorials.
What we do In the Video Tutorial :
- Show Demo of what we are going to build.
- Create MySQL database in Wamp Server.
- Write PHP scripts to connect talk to android over HTTP protocol.
- Write our code in android studio.
- Run the project and see the result.
- Have some coffee if to celebrate.
SOURCE FORMAT :
- Platform : Android
- Language : Java and XML
- Tools : Android Studio
SOURCE CODE REFERENCE :