Communicating between 2008 SQL Server DB and Android App - java

I've been doing a lot of reading about this subject and I am now of the conclusion that to communicate between a 2008 SQL Server database and an Android application, I need to create a RESTful Service to sit in between that returns JSON objects.
Would I be correct in saying that?

Yes, you need doing a server application who take data and returns to the Android application. JSON let you return complex objects.

Related

Sending JSON objects between .NET server and Java server

I'm working on a .NET Web Application that uses a Database. Whenever data is changed, instead of directly updating the Database, I need to do it through a Java Server. That is, the Web Application has no access to the database but instead gets and sends all the information from/to the Java Server through TCP Sockets, which in turn handles the Database. Basically, I need to send JSON serialized objects from the .NET Server to the Java Server back and forth. What is the best approach to use in this situation? What DataStreams should I use on each side?

Saving data from android app to remote server

I am just a beginner in android app development and that's why I have many doubts. I am building one application where the user enters some data in editText. Now I want to save that data in my database. My database is running on my laptop. How would my app connect to the database? Do I need a web server in between? If yes then which web server is used for Android apps? Basically, i want to know the flow of data from app to the database.
Study more from Udacity.com, its free.
You may use a jdbc Connector to connect to database.
Connect your jdbc connector over local network ip\servername and database connection string
You can use REST Service when it comes to web Service on Android like this. You can either pass the values as parameters or an Object depending on your requirement. All the best
Wamp server is best option to play with server related utilities.You can use it even if you are offline. and it provides various option for data storage. It Mainly uses MySql and PHP scripts for fast performance.
For More details Click Here

Database using Java

I am making an application similar to that of apps such as pay by phone and paymobile, which are apps used to pay for parking instead of using a parking meter and having to display a ticket in your vehicle.
I need to start with the back-end (the database) and was wondering if SQL would be appropriate for this app.
As SQLite is stored on the system (the Database) there will be data such parking details and payment details.
Will I be able to send this data to say my laptop which will act as the server for the traffic wardens device to check number plates?
Or would I have to use a sql software that is not on the applications itself?
Any thoughts and suggestions would be much appreciated :D
SQL is perfect for back end database needs. You can various flavors of SQL like Oracle or MySQL on the back end. As far as the application data being sent to the server (your backend laptop), that will be taken care by the application level programming. For android, there are various ways to send data, using the native class AsyncTask or using third party libraries like Retrofit and Volley. You need to take a decision depending on the architecture of your app.
Try this
Create database on your server
Create Web API like .Net MVC on your server
Create connection between your Web API and your database
In your mobile app you can use webservice to get our put your data to database
You can encyrpt your data on your database to more safety
do not use SQLite , because it is unsafe to keep your important data.

How would I go about creating an android app that displays tables of data from an SQL Server?

I'm trying to make an android application that displays tables of sorted data which is stored on a 2008 MS SQL Server. I already thoroughly googled this issue and essentially every person who wanted to connect to a server directly through Android was told they should make a web service which bridges the app with the database server. Problem is, I have no clue how to do that. I only have (v. limited) java/android knowledge.
Instead, I was hoping that the data on the server could somehow be stored locally on the phone and used by the app, instead of connecting to the server directly, which is slow and insecure. (This is a HUGE database we're talking about - 100,000s of entries) Would that be feasible at all?

Connecting SQL server 2014 database with android application

I have created a database with SQL server 2014, and i want to connect and access it from android application im developing in android studio.
is it possible without creating a web service?
Never ever do any heavy weighted operations such as directly connecting to an sql server since consumes heavy battery and it requires huge data consumption where the end users might not prefer.So The only light weighted way present is to use your own TCP based logic layer i.e giving a call to web services.
You can refer to KSOAP2 library in connecting to your webservice which gives you a response to the request you make.If you are a programmer of .net you can write an asmx web service.And connecting to to the web service is given clearly in this link Connecting to ASMX Web Services

Categories