Solved

Connect Android app to DB

Posted on 2012-03-18
6
469 Views
Last Modified: 2012-03-30
I have a local MS SQL Server stored on my machine. What I would like to do is an android application that can actually access this database. how can i do this.any tutorial or links will be appreciated.

cheers
ZOlf
0
Comment
Question by:zolf
6 Comments
 
LVL 14

Expert Comment

by:John-Charles-Herzberg
ID: 37734556
0
 

Author Comment

by:zolf
ID: 37734578
thanks for your comments.
that was not helpful. also i would appcreate if you provide some java version
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 500 total points
ID: 37734599
not such a good idea to connect your client directly to sql server. instead make a service and connect to service, let the service respond to your requests in form of JSON or XML.

here are few examples:-
http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/
http://www.ibm.com/developerworks/xml/library/x-dataAndroid/

have a look at this discussion as well on SO:-
http://stackoverflow.com/questions/5253127/how-to-connect-to-a-mysql-database-from-an-android-app
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 11

Expert Comment

by:stevengraff
ID: 37734878
We see here that it's possible to do.
0
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37735137
I am not saying it can't be done, however its not advisable to do so...
Even the description of the app says so:-


Perfect for website owners who need to check on things or run a quick update statement
0
 

Author Comment

by:zolf
ID: 37745801
thanks for your comments.

can somebody tell me how i can show a table record from my sql server table into my android application.a simple e.g. or tutorial will be appreciated.i want to know what things is neeed
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apps on mobile : future? 1 109
disable wifi and bluetooth 10 56
why Microsoft smartphones are not successful as Apple IOS and Anroid? 5 55
android location app 3 26
Introduction Everyone is using a smartphone these days. Contacts, messages, applications, documents, bookmarks, pictures, videos and other stuff which you created and are present only on your device come under the umbrella called “Personal Data”.…
Working settings for French ISP Orange "Prêt à Surfer" SIM cards for data connections only. Can't be found anywhere else !
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

830 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