简体   繁体   English

如何创建在线数据库并将其连接到 Android 应用程序?

[英]How do i create an online database and connect it to an android app?

The main idea is to get daily updates for a topic and notify the user.主要思想是获取主题的每日更新并通知用户。 Please suggest what services and databases to use (most secure) and the procedure/links on how to connect to the database.请建议使用哪些服务和数据库(最安全)以及有关如何连接到数据库的程序/链接。 Thanks in advance,提前致谢,

Directly connecting to a database is not recommended at all.完全不建议直接连接到数据库。 Instead you need to create service layer in a app server and consume the services from android.相反,您需要在应用服务器中创建服务层并使用来自 android 的服务。 There are too many different ways and technologies for doing such things.做这样的事情有太多不同的方法和技术。 You can set up your services and database in a server from scratch or you could use other solutions like Google Cloud App Engine, or use a Baas like Parse.您可以从头开始在服务器中设置您的服务和数据库,或者您可以使用其他解决方案,如 Google Cloud App Engine,或使用像 Parse 这样的 Baas。 These things provides services, storage and push notifications, among others.这些东西提供服务、存储和推送通知等。

You will need to read and investigate to find the most suitable for your case.您需要阅读和调查以找到最适合您的案例。

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

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