Solved

Android user log in and database communication suggestions

Posted on 2010-08-22
2
516 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:o3h
  • 2
2 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
Comment Utility
I have only had an Android device for a very short while so I haven't done much development there yet, but I will chime in from the Java and general web application perspective until you get other Experts posting.

Since you typically want to keep load off of the mobile devices to not bog down memory, you could setup a REST web service or simply emulate this using a servlet. Might want to look at projects like Hibernate also. This will allow you to do all the heavy database lifting on the server end and all you pass back is the coordinates.

Now following on this thought, you can have this web service require user credentials to function. Again, you can handle the verification of username and hashed password in the service. This would allow you to have just a couple text boxes on the front end app on the phone (Android device) with minimal code maybe to handle the hashing of password before sending across the cloud. Alternatively, you can have this too on a web page and the Android client is simply a web-based app being browsed on the devices Internet browser.

Just my $0.02 anyway!
0
 
LVL 59

Accepted Solution

by:
Kevin Cross earned 500 total points
Comment Utility
This may be helpful as it shows how the HTTPClient piece works and given that you may have your MySQL server hosted on a LAMP stack then might be a good resource to create the data accessor "service" pieces in PHP.

http://www.helloandroid.com/tutorials/connecting-mysql-database
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
If your app took Google’s lash recently, here are the 5 most likely reasons.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now