Android App Tutorial Series

In this Series of android app tutorial we will focus on how to connect with PHP Scripts with MySQL as database and communicating with android.

Basically it is used as Web Services for fetching,inserting,managing data through android app with the help of PHP Scripts.

We will call the PHP Script with Volley Library (Saves time,Easy to use)

So the operation will be simple as defined in below image

Web Services Diagram

Web Services Diagram

your code calls PHP script

 

What is PHP ?

PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language

What is MySQL ?

With PHP, you can connect to and manipulate databases.

MySQL is the most popular database system used with PHP

How to host files of PHP & MySQL (It’s not same as putting *.java files in your Project) ?

You need a hosting if  you want to access it over Internet

OR

You can use WAMP,XAMPP or any other server on your computer install one of them by this you can host your PHP files locally and access it via 127.0.0.1 or localhost (these are the address to access your files just like domain name developerhouse.com)

PHP script will work on Server Side for inserting, Editing, Deleting ,Showing Records with MySQL Database.

I’ll be using Hostgator shared hosting to host PHP Scripts.if you want to use any other hosting the process will be same if the hosting provides CPanel.

OR

I will also post Screenshot to get you started with WAMP so that you ca use localhost instead of Linux Hosting (WAMP,XAMPP)

Tutorial List:

Part 1- Tutorial 1 : Connect Android with PHP,MySQL (PHP Code)

Part 2- Tutorial 2 : Connect Android with PHP,MySQL (JAVA Code)