Requirements for the App1) Android Studio.
2) SQL Server.
3) Firewall must allow to connect to database. (or turn off firewall from control pannel)
4) Download and add latest version of jtds jar file and include it in your project. See how to include jtds jar file to your project HERE.
5) You need to change database ip address, user name, database name and password in the MainActivity.java file below at end. 6) Must also modify the query string in MainActivity.java file below at end.
Open your gradle module App and add the following
build.gradle (Module App)
Now, Open your activity_main.xml and add the following code
Open your AndroidManifest.xml file and add the following permission
Now, Open your MainActivtiy.java and add the following code
You need to change the database credentials and modify query string in this file somewhere below.