Solved

Android user log in and database communication suggestions

Posted on 2010-08-22
2
517 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
ID: 33494715
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
ID: 33494722
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
advertisement module in core php 4 144
java 8 lambda expresssions exception handling 3 72
Java Loop 6 48
rhino JavaScript import, load 25 66
Once again I push the limits of my phone.  An introduction to the Android Google Now Launcher.
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.

932 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

17 Experts available now in Live!

Get 1:1 Help Now