-2

What is the best way for get data form MS SQL server remote for Android application? Use JDBC ? or create something like API REST? or something else? How did succided or had other resolf this problem?

sebob
  • 515
  • 6
  • 14

2 Answers2

0

You need to expose a WebService and connect to it with Android. You need to do query or everything else directly from your webservice and not from android. Check out these links:

Community
  • 1
  • 1
rootpanthera
  • 2,731
  • 10
  • 33
  • 65
0

Do not directly connect to the database. The reason is quite simple: Anyone can get access to your database when decompiling your app. Once done this person can execute CRUD-operations on your database.

The best way is to write/have a server which accepts and handles commands send from your app.