开发者

Connecting the oracle in android application

I am doing multimedia application. my issue is i want to connect oracle database into my application through JDBC. whenever i tried to connect jdbc driver it shows

Dxwarning: Ignoring开发者_如何学编程 InnerClasses attribute for an anonymous inner class (oracle.jdbc.pool.OracleRuntimeLoadBalancingEventHandlerThread$1) that doesn't come with an associated EnclosingMethod attribute. This class was probably produced by a compiler that did not target the modern .class file format. The recommended solution is to recompile the class from source, using an up-to-date compiler and without specifying any "-target" type options. The consequence of ignoring this warning is that reflective operations on this class will incorrectly indicate that it is not an inner class.

can anyone link the exact jar file for oracle JDBC for android application.


You cannot import a JAR implementing java.* classes easily. And, JDBC would need to be ported to Android, since it probably relies upon classes in JavaSE that Android lacks. And, you would need to write your own JDBC driver for SQLite anyway, wrapping the API Android already supplies, since I suspect the existing JDBC driver uses JNI. And, when all of that is done, you will have an application that adds a lot of bloat, making it less likely people will download and retain your application.

source


I'm very interested in this. I was trying something similar yesterday with the mysql driver (ultimately it will be an oracle connection though), everything I've googled says it's either a very bad idea to use jdbc with android or simply not possible.

Yet you've managed to connect to an oracle database. I'd be interested to know performance etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜