I'm new to android technology. Can anyone, please, suggest me some proven idea to connect an android application from my laptop to a remote sql database server (without using php). I got connected from my java file to the database. But the output is displayed in the console part. How to get it displayed on the android screen?
For using webservies in Android you will require Ksoap Library.
Related
I have an Android app that needs to retrieve info from a server that isn't related to the app.
I'll try to be more clear:
There's a server that is being updated every once in a while, and I need the devices to retrieve data from that server. How can I achieve this?
I thought about SQLite but I don't seem to understand how it will connect to an external database that isn't on the device
I have a Microsoft SQL Server 2008 database on my local server and I want to create an Android application to send and receive data from this database.
Do I have to upload my database to the cloud first? Where should I start?
If you want to test your android application with localserver or local database you'll need to have an emulator device. (You can use Android Studio's provided default emulator, or you can also install Genymotion that is way better than default emulator of Android studio in terms of speed, performance etc).
If you wan to test the application on real device then you have to upload your php files and databases to a live server.
The title kind of says the most of it but I want to connect to SQL using my Android app that I have in development so I made a sample set of code just to test the concept without using android and it worked. When I tried to use it on Android it doesn't work (connection error) is there a permission I need to request in my manifest? Any help is greatly appreciated.
You can not establish JDBC connections to remote database in android either you should use SQLite DB on device or write socket based interface between your device and hosted machine or the most appropriate way of doing this is using REST webservices.
i know there are millions of topics on the net about connecting to a external database, but i don't get the clue which ones i have to follow. probably this is because i am an beginner for java and android programming.
my setup:
-microsoft sql server 2005 on a server connected to the internet
-android app i am working on in java (eclipse)
what i want to try first:
-user gives an input number
-i go search this number and return the data from the database do put in on the screen of my android.
i've been reading alot about json and php scripts but i don't know where to start. this database is also used for other windows aplications, there the database is entered by the windows authentication i was told.
is it possible to also use this windows authentication?
anyway, what to do first for me?
thanks in advance
See answers here: Connecting android with MS SQL SERVER 2008
You should really use a webservice, connecting to the database is not the best practice.
I'm creating an Android App that would have to access a database on my PC. I know how to program in Java and access a MySQL on my PC using JDBC ODBC. Could anyone lead me to the right place?
android don't support jdbc.
why don't you make a application-server?
the architecture is this.
Android <<--(using REST/JSON)-->>Application-Server(including JDBC or ODBC) <<-->> Database
using json or rest is good to reduce data traffic.
and generally the application server is faster than Android device.