![]() Import java.io. Now lets look at the java code and xml representation, we have used to get all this functionality. To notify the user we send the $response value to android applcation, that is for value 1, we will display the database is connected successfully, where as for the value 0 we will display the text saying that database could not be connected. ![]() In the first step we make a simple connection to the database. $response =”successfully connected to the database” $response =”could not connect to the database” Now lets first make a connection to the database and display that on our android device. ![]() ![]() Note : Your specification to make connection to the database. You will need to write the php script that should respond to event that we trigger on our android application. In your cpanel browse to filemanger, then to public-html and create an new file with name of “queries.php”. NOTE: Note down the name of the database, server, username, and password, we will require this data make a connection to the database. Once the database with above description is created, we are ready for the next step. ID int (11) primary key auto incremented.ĭatabase should contain the following fields: The products will be the different types of mobiles phones. Next step is to create a simple database at Phpmyadmin area.įor this tutorial we would like to make an application for displaying list of products. Once you register your free domain, navigate cpanel. How to make free database, domain name and hosting at ?įirst of all we need to make a free account at 00webhost website. How to Make a free database, domain name and hosting at.Lets know break down the tutorial into some steps. Make a login table in database with following schema. But sometimes it becomes mandatory to make your online database. Android Login and Register Using Restful Web Services (Java + MySQL) Create Restful Web Service I have used MySQL database in this web service. Suppose if we need to make weather application, we will simply use any web service that provide us the data of the weather, which we can display on our appplication.
0 Comments
Leave a Reply. |