1

I have an idea for a website that will require the use of a database to keep track of user accounts, and other things the user does on the website. I have experience with developing websites with MySQL database. I was hoping to also create an application for the website on Android and iOS. I have some experience with Android development, and I am still learning quite a lot. However, I have not done anything with databases in mobile devices.

What would be the best way to create a mobile applications and a website that the user could use to access their accounts. Would it be best to have a mobile database on the handset and sync it with the database on the server, or would it be best to have the application query the database on the server directly?

Thanks,

Michael

4

2 回答 2

1

我建议的最好方法是使用 API。

您可以创建 API 以通过移动应用程序访问数据库。

您的网站也将使用相同的数据库,并且您的移动应用程序将调用 API 以从数据库中获取数据。

可能这可以帮助您入门:http ://www.javacodegeeks.com/2010/10/android-full-app-part-2-using-http-api.html

于 2013-05-22T10:50:25.217 回答
1

我认为,使用网络服务与网络数据库进行通信。它很容易使用,因为您将这个数据库用于 android 和 ios。

谢谢。

于 2013-05-22T10:53:51.480 回答