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
Related
i want to develop a android application that can work only on the android emulator of my desktop , i have no idea of web service ,is there any way i can connect android directly to database just like we connect in ASp.net?
Android includes a full implementation of sqlite. Vogella has a nice tutorial: http://www.vogella.com/articles/AndroidSQLite/article.html
If you're truly wanting to accomplish this as a locally hosted web service you're going to have to include apache (or similar) in some way. Infinitely harder than just creating a local database.
How about running Android in a virtual machine on a server:
http://androvm.org/blog/
(uses VirtualBox which can run on Windows.)
Then connect via local host to SQL server running on same Windows server.
edit: Running Android in virtual box is like running it on an emulator, but much faster and greater functionality, e.g. the ability to communicate with the host machine via a variety of techniques including via virtual network adapter.
Be clear on what exactly you need?
For stand alone android application you can use SQlite database provided by android
SQllite tutorial
If you are looking to create a webservice... you can try the below link
WebService example
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
I'm new to Android programming. I have a website with sql 2008 db, and now i would like to give the users the ability to use their smart phones to enter data to this db.
I was wondering what is the best way to establish it. Since I'm new to it I don't want to build something that's not so professional.
Thanks for your help.
If I were you I would consider two following options:
Have a web application optimised for mobile use;
Pros:
Updates are delivered immediately, as there's no client application, everything is done on the server;
Web application can be used on many devices with a browser and not just Android: iPhone, Blackberry, PC, Mac, etc.;
Cons:
Users need to be online to work with the application;
You can not leverage from the native UI components available to native device applications;
Write Android application that will work with the database via a number of REST endpoints exposed through a web application (again);
The pros and cons are a full reverse of what you had in the first option.
The right answer for me was to use KSoap library. I'ts very easy and works very well.
Here is a tutorial that will show you how to do it step by step.
http://java.dzone.com/articles/invoke-webservices-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
Is there any way to use a Microsoft Access files in an Android application?
I do not believe there is any way to use a MS Access database with an Android application. Instead, you should probably consider using another database such as SQLite.
You could migrate your Access database to SQLite:
Export your Access database into text files, semicolon or comma delimited.
Open the SQLite database browser and chose File -> Import -> Table from csv file.
Browse for your text file and choose the appropriate delimiter. Click create.
If import isn't an option you can make a (PHP) webservice that queries the database. Then call upon that webservice in your android application.
This week i'll be starting a tutorial serie on http://p-xr.com that will explain just that.
You can use jackcess, is pretty easy to use, but you can't execute queries.
http://jackcess.sourceforge.net/faq.html
Well, if you are using Access 2010, then you can build web sites, and the results are massively scalable to the web in terms of simultaneous users. The so called Access web services are also coming to office 365. So with office 365 (still in testing) or with SharePoint 2010 you can thus publish Access forms to the web. Here is a video of mine, and note how the same Access application at the half way point is run in an standard browser.
http://www.youtube.com/watch?v=AU4mH0jPntI
Note that no ActiveX or Silverlight is required (so it standard web compliant). I have tested the Access applications running on my windows 7 phone and the Access web application also runs well on my iPad (safari browser).
So, I do not see why the Access application would not work and run fine on an android phone. Note that when you publish the Access forms they are turned into xaml (.net zammel forms), and code you write in the Access form is converted into JavaScript. Reports are converted into sql server reporting services.
Use a windows machine and access access over a remote control tool.
For a bigger scenario, you can use Windows Terminal Services.