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
Related
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.
I have a question about which database I should use for my android and iOS apps. I have not messed with servers before so please excuse my ignorance.
Anyways, I am developing apps for a website that doesn't have a mobile version. The website has a MySQL database and uses phpMyAdmin as a control panel.
I need to figure out how to hook into the server. I know that java provides full support for SQLite databases and I know that they server hosters can install SQLite on the server for me.
What do you all think? MySQL or SQLite?
You should be using SQLite for any local databases to the Android app (CoreData for iOS).
Any interaction with your websites MySQL database should be handled through API calls.
There is a good PHP framework called Slim PHP that will make building your API extremely simple. It's documented very well. Slim PHP doesn't offer any form of ORM so I'd also recommend integrating with Idiorm/Paris, again their documentation is rather good so you shouldn't have a problem piecing this all together.
Of course you can opt for a larger PHP framework that has all of this in one place, such as Symfony.
I want to connect to a MySQL server database from an android client. I read that using a Web Service between them is one of the best approach.
I also read that it is not possible(or it should be really hard) to connect directly to a database(MySql server, MS SQL server and Oracle) from Android because the database drivers are not supported by android. Is it right?
I appreciate for any suggestion.
I think the closest you are going to get to something "official" is the fact that these databases are not listed under data storage options in the official list here.
Of course, nothing is preventing support for these databases later. You may even find libraries to do this at unofficial sources.
EDIT
If you wish, you can research using JDBC to connect to these databases. Here is an SO question regarding that. JDBC connection in Android
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
im developing a app in android 2.3, i need to connect to oracle server to fetch data for my app, can anyone tell me wat are the lib files to add and where. Please help
Please be sensible. Write a Web service front end for your database, one that protects your database server from rogue activity. Then, use that Web service for your mobile apps.
Another solution you should consider is mobile server, a product from Oracle designed specifically for syncing data between Oracle DB and mobile devices.
It includes a fully configurable synchronization engine that can either run stand alone, or be controlled from inside your app via APIs. It supports SSL so you can have safe, secure access to your data from Android and other mobile devices.
You can read about it here:
http://bit.ly/fmiAre
Also you can download it from the download tab on the same link and try it out yourself.
Good luck with your project,
Eric, Oracle PM