简体   繁体   English

从我的 android 应用程序将数据保存到远程数据库

[英]save data into a remote database from my android app

Im starting in this android development world, I would like to create an app with a simple form that allows me to register information but not in a device database but in a remote database instead, so all my employees from their locations can register information in a central database that we in office can review or even them from their mobile phones.我从这个 android 开发世界开始,我想用一个简单的表单创建一个应用程序,允许我注册信息,但不是在设备数据库中,而是在远程数据库中,所以我所有的员工都可以在他们的位置注册信息我们在办公室的中央数据库可以通过他们的手机查看,甚至可以查看它们。 Im coming back from 10 yeards of not touching this development topics but at least i already did some simple apps, i have the idea of how they works, layouts, activitys, connections between them via references but remote db is not easy to find as the other basic lessons.我从 10 年没有接触这个开发主题回来,但至少我已经做了一些简单的应用程序,我知道它们是如何工作的、布局、活动、它们之间通过引用的连接,但是远程数据库并不容易找到,因为其他基础课程。

Links or info are more enough, thank you!链接或信息就足够了,谢谢!

You would create your database and set it up so that a 'web app' (web service) could connect to it.您将创建您的数据库并对其进行设置,以便“网络应用程序”(网络服务)可以连接到它。 The web service (which you write) can be as fancy as you want, or just provide basic CRUD (create, read, update, delete) functionality. web 服务(由您编写)可以随心所欲,或者只提供基本的 CRUD(创建、读取、更新、删除)功能。 When published on an internet available domain, the API will be exposed to your app, which can call it with basic HTTPS requests (GET, POST, PUT, DELETE if your API is 'RESTful').当在 Internet 可用域上发布时,API 将暴露给您的应用程序,该应用程序可以使用基本的 HTTPS 请求(GET、POST、PUT、DELETE,如果您的 ZDB974238714CA8DE634A7CE1D08FZ 为“A1”)调用它。 Search for WEBAPI 2.0 with Entity Framework Tutorials and you will find great examples.搜索 WEBAPI 2.0 with Entity Framework Tutorials,你会发现很好的例子。

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

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