姬長信(Redy)

如何将Android连接到数据库服务器


有样品吗?我有我的Android应用程序,我需要连接到我的机器上的mysql服务器,最好的方法是什么?

我不应该使用jdbc,这里有解释

> Best way to implement Client Server Database architecture in an Android application?

Never never use a database driver across an Internet connection, for any database, for any platform, for any client, anywhere. That goes double for mobile. Database drivers are designed for LAN operations and are not designed for flaky/intermittent connections or high latency.

应该去:

DefaultHttpClient httpclient = new DefaultHttpClient(); 

但是没有关于如何打开连接或执行简单的sql语句的示例.
谁有人可以帮助我?