Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
I known 2 solution to get data from sqlserver to android app:
1.Create a WebService for your data and connect via that web service on your android device.
2. Using JDBC driver library
So what are advantages and disadvantages of 2 solutions ?
Posted
Comments

1 solution

What i will suggest is better to go for web services approach rather than connecting directly to database from android application. It gives you an opportunity to make your client more lightweight, both in terms of CPU and bandwidth requirement.

By splitting the system we can get more control over our business rules, the structure of database etc. If we will go for the other approach by directly connecting to the database by android app, it will be not so easy to change structure when required.

Also if you have both the web application and the android application for your business then it is a better idea to create web services and call the web methods from both kind of applications.


Hope this description will be of help to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900