This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Android and the fly likes Connecting to Database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Mobile » Android
Bookmark "Connecting to Database" Watch "Connecting to Database" New topic
Author

Connecting to Database

John Chambers
Greenhorn

Joined: Jan 07, 2012
Posts: 5
Hi , i need to develop an android application that can do verify userlogin and display a small message if login is successful. When user enters his login details in the app, these login details need to be verified against a sql server DB , and then if the login is successful , i need to display a small message in the app. Can anybody advice on how to achieve this functionality?
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
What part are you struggling with? The basics of using DBs are mentioned at http://developer.android.com/guide/topics/data/data-storage.html#db, which also links to a couple of example apps.
John Chambers
Greenhorn

Joined: Jan 07, 2012
Posts: 5
I have created a view for login and password. I have a Sql Server on my local machine . In these app , i need the following functionality- Whenever user enters login and password, the Credentials should be verified against existing SqlServer login table , and if login is successful , it should pull out the first name and last name fields for that login record from the table and display it for the user.


John Chambers
Greenhorn

Joined: Jan 07, 2012
Posts: 5
Any ideas from anybody [moderators] on how to implement the functionality in android?
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Again, what part are you struggling with?
 
GeeCON Prague 2014
 
subject: Connecting to Database