我想用我的Android应用程序连接的MySQL
DB。
然而,我的不要想/ 不能使用 PHP
这样做的。
I want to connect a MySql
DB with my android application.
However, I DON'T want to/CAN'T use PHP
for doing this.
几乎与Android的互联网使用的MySQL
连接所有解决方案的PHP
。
我听说,如果一个人不希望使用 PHP
然后 Web服务
应使用。
Almost all solution for MySql
connection with android on internet uses PHP
.
I read somewhere that, If one don't want to use PHP
then web service
should be used.
但我没能找到任何教程/样本例子是一样的。
But I'm not able to find any tutorial/sample example for the same.
任何帮助AP preciated。
Any help appreciated.
看来你混了一些东西。
Web服务是简单地在互联网(网络)的一些code,它允许你接收和发送信息到服务器,在那里每例如,在数据库中保存。
A web service is simply some code on the internet (web) which allows you to receive and send information to a server, where it is saved per example in a database.
PHP只是一种语言,在其中您可以编写一个Web服务。
PHP is just a language, in which you can write a web service.
您可以使用语言繁多,以创建一个Web服务(读:你的数据库暴露)到其他设备。其中,你可以很容易地在Java中做到这一点,.NET,Python的...
You can use a vast array of languages to create a web service ( read: expose your database) to other devices. Among others, you can easily do this in Java, .NET, Python ...
如果你正在寻找一种方式来连接到外部数据库没有任何Web服务/ API之间,我得让你失望的消息,这是不支持的Android系统。
If you're looking for a way to connect to an external database without any web service / API in between, i'll have to disappoint you with the news that this is not supported by Android.
一个简单的Web服务的大多数例子/一堆脚本包含PHP,因为这可能是最简单的,可以在pretty的使用大大任何服务器。
Most examples of a simple web service / a bunch of scripts contain PHP since this is probably the easiest and can be used on pretty much any server.