android jdbc odbc connection

前端 未结 1 1107
轮回少年
轮回少年 2021-01-24 13:11

i want to connect odbc connection to my android application. my database is oracle 10g. Here in my code my table name is world. After compiling my program and close the emulator

1条回答
  •  失恋的感觉
    2021-01-24 13:53

    Android apps connecting directly to a DMBS isn't an architecture I'd recommend. Instead, I suggest setting an application on the server (using Java, Rails, whatever) that reads the database and exposes a simple HTTP web service for the Android app to get at the data. Not only is that a more sound architecture, I'm not even sure you can run JDBC drivers in an Android device. Using my architecture, you isolate the device from the structure and type of your database.

    0 讨论(0)
提交回复
热议问题