问题描述
我怎么能一个Android应用程序连接到存储在BlueMix DB2数据库?
How can I connect an Android application to a DB2 database stored in BlueMix?
我知道有些Java库在Android的丢失,所以我不能用JDBC连接到数据库。
I know that some Java libraries are missing in Android, so I can't use JDBC to connect to the database.
任何想法?
推荐答案
您不能直接从您的Android应用聊到SQL数据库上Bluemix。您将需要创建会谈db和你的Android应用可以与该应用程序上bluemix中介申请。您可以实现此后端为REST API(Java的JAX-RS,Node.js的W /防爆$ P $等PSS)。在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框架,通过设置简化了这一为你所有的移动后端。
There is also the Mobile Data framework on Bluemix that simplifies this by setting up all the mobile backend for you.
这篇关于连接Android应用程序到存储BlueMix DB2数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!