简体   繁体   English

想要设置一个将连接到后端数据库的Android应用

[英]want to setup an Android app that will connect to a backend database

I want to setup an Android app that will connect to a backend database (web/database server that I maintain). 我想设置一个将连接到后端数据库(我维护的Web /数据库服务器)的Android应用。 What are some good resources for doing so?.my webserver is build with php 这样做有什么好的资源?.my webserver是用php构建的

Usually you would connect to your database through a WebService. 通常,您将通过WebService连接到数据库。

Popular choices are: 流行的选择是:

  • SOAP (your webserver / PHP software must implement a SOAP protocol) - take a look here http://ksoap2.sourceforge.net/ and wikipedia on SOAP SOAP(您的Web服务器/ PHP软件必须实现SOAP协议)-在此处查看http://ksoap2.sourceforge.net/和SOAP上的Wikipedia
  • custom JSON API - same like SOAP, but in a protocol called JSON (more concise) 自定义JSON API-与SOAP相同,但使用的协议称为JSON(更简洁)
  • Your custom API 您的自定义API

You might want to refrain from using any JDBC alike connections. 您可能要避免使用任何类似JDBC的连接。 Others have asked this https://stackoverflow.com/search?q=[android]+jdbc 其他人问这个https://stackoverflow.com/search?q=[android]+jdbc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM