• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps User log in design suggestions

kalasp

Lurker
Hi!

Im developing a google maps app, which gets coordinates from a MySQL database. The application should require a user to login to get its coordinates. It would be preferable if the user could use the login on for example a regular web page.
I really have no idea how to do this, suggestions?

Suggestion on user login solutions?
Suggestion on best way to get info from MySQL database?

Thank you!
 
For this, you will need access to a web server. You need to create a PHP script file that will be hosted on the web server and will receive the requested login info (i.e. username and password) and compare it to an online database), It should then return a response to calling app or webpage. In your app, you will use HttpPost and HttpResponse to "talk" to the PHP script file. You do the same thing with a web page (likely using javascript).

For information on PHP and javascript, check out w3schools.com. Also, phpfreaks.com is a nice forum for help with PHP.

If you have any specific questions, I could also help you as I have done something similar to this in the past (although not a login, but it is the same concept).
 
Back
Top Bottom