如何在Android应用程序中使用免费的云数据库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12104756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
how to use free cloud database with android app?
提问by himAndroid
I am developing an Google maps android application in which I want to use database in cloud for saving usernames, passwords, GPS Locations etc. Can any option to achieve this with free of cost ? If there are any examples, posts, or tutorials?
我正在开发一个谷歌地图 android 应用程序,我想在其中使用云中的数据库来保存用户名、密码、GPS 位置等。是否有任何选项可以免费实现这一目标?如果有任何示例,帖子或教程?
回答by S.D.
Updated
更新
Now there are a lot of cloud providers , providing solutions like MBaaS (Mobile Backend as a Service). Some only give access to cloud database, some will do the user management for you, some let you place code around cloud database and there are facilities of access control, push notifications, analytics, integrated image and file hosting etc.
现在有很多云提供商,提供像 MBaaS(移动后端即服务)这样的解决方案。有些只允许访问云数据库,有些会为你做用户管理,有些让你在云数据库周围放置代码,还有访问控制、推送通知、分析、集成图像和文件托管等设施。
Here are some providers which have a "free-tier" (may change in future):
以下是一些具有“免费层”的提供商(将来可能会更改):
- Firebase - https://firebase.google.com/
- AWS Mobile - https://aws.amazon.com/mobile/
- Azure Mobile - https://azure.microsoft.com/en-in/services/app-service/mobile/
- IBM Bluemix: https://console.bluemix.net/developer/mobile/starter-kits
- Kinvey - http://www.kinvey.com
- Firebase - https://firebase.google.com/
- AWS 移动版 - https://aws.amazon.com/mobile/
- Azure 移动 - https://azure.microsoft.com/en-in/services/app-service/mobile/
- IBM Bluemix:https://console.bluemix.net/developer/mobile/starter-kits
- Kinvey - http://www.kinvey.com
Also, the host yourself solution:
另外,主机自己的解决方案:
- Parse (now a DIY toolkit) - http://parseplatform.org/
- 解析(现在是一个 DIY 工具包) - http://parseplatform.org/
old
老的
Google App Engine has a DataStore: https://developers.google.com/appengine/
谷歌应用程序引擎具有数据存储:https://developers.google.com/appengine/
You can create a free account, and host a sophisticated web service. As long as your app doesn't generate really massive server transactions and data daily, its free. SQL storage is available too, but at a cost.
您可以创建一个免费帐户,并托管复杂的 Web 服务。只要您的应用程序不会每天产生大量的服务器交易和数据,它就是免费的。SQL 存储也可用,但需要付费。
Helpful links:
有用的网址:
Quick setup : http://code.google.com/p/appengine-rest-server/
快速设置:http: //code.google.com/p/appengine-rest-server/
Real android example : http://macgyverdev.blogspot.in/2012/01/create-spring-rest-service-for-google.html
真正的安卓示例:http: //macgyverdev.blogspot.in/2012/01/create-spring-rest-service-for-google.html
回答by Aerilys
As Wingman said, Google App Engine is a great solution for your scenario.
正如 Wingman 所说,Google App Engine 是适合您的场景的绝佳解决方案。
You can get some information about GAE+Android here: https://developers.google.com/eclipse/docs/appengine_connected_android
您可以在此处获取有关 GAE+Android 的一些信息:https: //developers.google.com/eclipse/docs/appengine_connected_android
And from this Google IO 2012 session: http://www.youtube.com/watch?v=NU_wNR_UUn4
来自这个 Google IO 2012 会议:http: //www.youtube.com/watch?v=NU_wNR_UUn4