Connecting Android application to BlueMix stored DB2 Database(将 Android 应用程序连接到 BlueMix 存储的 DB2 数据库)
问题描述
如何将 Android 应用程序连接到存储在 BlueMix 中的 DB2 数据库?
How can I connect an Android application to a DB2 database stored in BlueMix?
我知道Android中缺少一些Java库,所以无法使用JDBC连接数据库.
I know that some Java libraries are missing in Android, so I can't use JDBC to connect to the database.
有什么想法吗?
推荐答案
您无法从 Android 应用程序直接与 Bluemix 上的 SQL DB 对话.您将需要在 bluemix 上创建一个与 db 对话的中间应用程序,并且您的 android 应用程序可以与该应用程序对话.您可以将此后端实现为 RESTful API(Java JAX-RS、Node.js w/Express 等).Bluemix 上的 Boilerplates 是一个很好的起点.
You can not talk directly to the SQL DB on Bluemix from your android app. You will need to create an intermediary application on bluemix that talks to the db and your android app can talk to that application. You can implement this backend as a RESTful API (Java JAX-RS, Node.js w/ Express etc). The Boilerplates on Bluemix are a good place to start.
Bluemix 上还有 Mobile Data 框架,通过设置为您准备好所有的移动后端.
There is also the Mobile Data framework on Bluemix that simplifies this by setting up all the mobile backend for you.
这篇关于将 Android 应用程序连接到 BlueMix 存储的 DB2 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:将 Android 应用程序连接到 BlueMix 存储的 DB2 数据库


- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01