File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Connecting to Database

John Chambers

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

Joined: Sep 21, 2011
Posts: 2408
What part are you struggling with? The basics of using DBs are mentioned at, which also links to a couple of example apps.
John Chambers

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

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

Joined: Nov 08, 2003
Posts: 3476

Again, what part are you struggling with?
I agree. Here's the link:
subject: Connecting to Database
Similar Threads
Spring and hibernate
A survived Ajax data
Logging issues in web services
program flow problem
HttpSession sharing between browser instances on same machine!