CHETAN
CHETAN

Reputation: 1

connecting android with mysql

hey guys i am developing a final year location-based project(gps) in android.I have to create a server using php and mysql which contains name and location(in latitude and longitude) of important hospitals in Mumbai.The android client should be able to retrieve the the latitude and longitude of locations in mysql(external) database and then plot it on a google map.

Could u plzz tell me whether this is possible?If yes, then how? Any help would be appreciated....cheers

Upvotes: 0

Views: 2112

Answers (3)

prolink007
prolink007

Reputation: 34614

Try this method out. I will be using this method for the current project i am working on.

You basically create a php script on a server and use http posts to send the data to the script, read the tutorial linked below for better explanation.

mysql/android tutorial

Upvotes: 0

user340145
user340145

Reputation:

What is the reason for using the PHP/MySQL combination to achieve this? Unless the list of hospitals is very dynamic it would be far more convenient to just but the data in an SQLite database that Android comes with.

If this is no an option I would put up a simple web service from where you could retrieve your data.

Upvotes: 0

Mchl
Mchl

Reputation: 62395

Your projject would in fact consist of two application. A client running on android, and a server php-mysql application. The client would most likely talk to server using standard http requests.

Upvotes: 1

Related Questions