connecting to Android studio with a noSQL db like crouchDB - android

Has anyone here ever used a db like crouchDB to connect to an android application?
How do you connect to crouchDB using Android Studio?
I looked it up on google, but there was nothing there about this topic.

I am not familiar with couchDB but as far as I know, you need to connect to a server which connects to a database in order to fetch data for android application. PHP is the most popular server side language and I learnt node.js for android application. For node js, I found this example that teaches you how to connect nodejs to couchDB may help you. Also, you may try different framework with nodejs to facilitate your work, such as loopback. Loopback contains a connector to connect to couchDB but there would be quite a lot to learn since you have to learn loopback and nodejs but loopback automatically provides rest api and android sdk for you to output data effectively. For PHP, you may google one of many tutorial websites that fit your need. I personally never used couchDB before and I learnt how to connect android application to database from this tutorial.

Related

Android and Remote PHP Server on Eclipse

I am completely new to remote server. There is an eclipse which remote systems is installed on it. I want to have an android project and then use the remote systems to connect to PHP server and use MySQL data. I have installed android ADT and SDK on this Eclipse which has Remote system on it. Did I do a right thing? How should I connect between Android App and remote server? Is there any manual about it?
Hi as i understand question, you're interest in how to work with remote database from the Android application. For that is important to ask what platform you are going to use as server side PHP,JAVA, .NET? And according to answer it is possible to suggest nice tutorial.
It is quite good tutorial for beginning.
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/

iOS/Android Syncing with Delphi/C# Desktop Application

Not sure if this is the correct Stack Exchange website but here goes..
A client has asked me to look into the possibility of having a iOS or Android App for typing in information storing that in a SQLLite database and then syncing up with the main desktop application when plugged in by cable or something other syncing technology.
The desktop application is a Windows one written currently in Delphi 7.
Are there any API's to sync data from a SQLLite database on iOS/Android that Delphi can use?
If not, then would it be better if the desktop application was written in C# as its a newer language that can consume the API's easier?
For unidirectional sync (device to desktop), I would start with a simple web service (HTTP based). The new Web Sockets standard, also based on HTTP, is a little more complicated, but would allow for bidirectional communication.
The devices can HTTP POST database changes to the server, and the desktop client can pull new data (using HTTP GET) or receive push notifications, for example using a Web Sockets client.
For desktop to device you could also check out Apple Push Notifications and the corresponding Android technology.
For high availability I recommend a cloud-based solution like Amazon Elastic Compute Cloud (EC2), Google App Engine (GAE) or Azure.
This question is rather broad, there are many things you could do here. There aare so many technologies to use it's blinding.
The prevailing technique for transferring information from mobile devices is REST (over http).
You could also whip something up rather swiftly in node.js or WFC to create a service to collect information from the mobile devices.
I'm not sure about Delphi libraries available but perhaps by including REST in your search term you may have more luck. You may want to take a look at https://stackoverflow.com/questions/3959851/using-rest-with-delphi for a start.
The mobile side may be more tricky. If you are developing for multiple devices you may wish to explore the cross platform developer framework by PhoneGap as there seems to be a few projects that aim to sync local databases to the cloud. How you tie these together will be an interesting task.
Good luck!!!

Accessing Oracle database in android application

I want to access an oracle database in my android app. I searched through many tutorials but didn't find the proper one. Can someone suggest me some good tutorials to access oracle in android.
You should consider for mobile server, a clear product from Oracle designed specifically mobile devices. It includes a full synchronization engine that can either run stand alone for example or be controlled from inside your app via API.
Check Oracle Database Mobile Server 11g it can help you.
Considering the mobile domain its not wise and most probably not possible to connect mysql or oracle database using JDBC or ODBC driver as they are heavy and not designed to run on mobile OS.
Go for light weight web services like SOAP or RESTful ...
These webservice returns xml or json in response. parse it on android side and use the data.
The best way to do this is to have proxy/application server that is talking to oracle and can deliver the data to android via convenient format like json or xml.
Direct connection to the oracle database server would require:
Steady network connection
Oracle driver, that is quite heavy

How to connect from android to sql server using MonoDroid

I'm using MonoDroid for android development (meaning using visual studio 2010 and c#)
and trying to connect to sql server. can i use java.sql or system.data in my code and deploy it?
or if anyone has a better solution? (and please not the solution - "use eclipse")
Mono for Android provides System.Data.dll and the System.Data.SqlClient namespace, so you can use your existing System.Data code to connect to Microsoft SQL Server via Mono for Android.
However, you do need to enable TDS support within SQL Server, mixed-mode authentication, and other things. See also Mono's SQLClient documentation and (only indirectly related) my instructions to configure SQL Server for use by Mono with the NerdDinner sample.
Another option is to build a web service, create a reference from your mono project to the web service and use that web service to pass data objects to and from your application. This way you can use the normal .NET environment for getting the data and reuse that web service for other projects like an iOS version of your application without having to rewrite the data calls.
http://docs.xamarin.com/guides/cross-platform/application_fundamentals/web_services
Natively Android supports java.sql package, to connect with sql server , mysql or oracle, you required JDBC Type-3/4 driver. as per my knowledge currently available drivers are not compatible with Android. If you found any compatible driver then it is not advisable to use it because JDBC driver are optimized to work in LAN, Not WAN (Internet). the possible option is to create web service which act as bridge between Android and Database
Andorid <====> Web Service <====> Database

Android OS and postgreSQL

We are undertaking an Android project but need to connect to postgreSQL server which we use throughout our other projects.
Any suggestions on a starting point for this?
Is there anything out there (paid or unpaid) that will allow us to achieve this?
I realize that this is a pretty general question, and although we have extensive experience with writing desktop client/server apps, we have little experience with programming for mobile devices.
I would write a RestFUL API or WebService to be used as front end for your Android device to connect to your PostgreSQL backend.
I don't think you will be able to connect directly your Android App to a PostgreSQL database.
I'd go with a lightweight REST interface that would talk to PostgreSQL in the backend. Have a look at Simple.
I would approach this by implementing an intermediary web service. The Android application would send requests to the web service, which would serve as a gatekeeper to isolate the PostgreSQL server from the internet at large.

Categories

Resources