1. Android Forums is going down for maintenance at 6:00PM Central time. We apologize for any inconvenience! Shouldn't be down too long.
  2. Check out our app, Forums for Android! Download and leave feedback here!

User log in design suggestions

Discussion in 'Application Development' started by kalasp, Aug 22, 2010.

  1. kalasp

    kalasp New Member
    Thread Starter
    5

    Aug 22, 2010
    2
    0
    5
    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!
     

    Advertisement

  2. jonbonazza

    jonbonazza Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    163
    Male
    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).
     
  3. kalasp

    kalasp New Member
    Thread Starter
    5

    Aug 22, 2010
    2
    0
    5
    Thanks for your answer, do you know any guides or walkthroughs for exactly this for Android?

    Thanks
     
  4. jonbonazza

    jonbonazza Well-Known Member
    163

    Jul 13, 2010
    1,934
    458
    163
    Male

Share This Page

Loading...