在Android应用程序上离线存储数据的最佳方法是什么? [英] What is the best way to store data offline on android apps?

查看:488
本文介绍了在Android应用程序上离线存储数据的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android开发的初学者,我应该开发一个无需连接即可运行的应用程序。我应该使用的最佳数据形式是什么(json,sqlite或Firebase)?
我的应用程序旨在将拉丁语言的文本实时翻译为英语。因此,我应该为每个英文字母存储所有对应的拉丁形式,这是我应该存储的表格:在此处输入图片描述

I am a beginner on android developpment,i should developpe an application that works without connection .What's the best form of data that i should use( json,sqlite or Firebase)? My application aims to translate text in latin language to the english language in real time .So i should store for each letter in english all the corresponding forms in latin and this is the table that i should store :enter image description here

推荐答案

这是一个非常模糊的问题,很难回答。确实,SO非常适合于更详细的特定问题。

This is a quite a vague question which makes it difficult to answer. Really SO is best suited to a specific question with much more detail.

简而言之,Android具有多种离线存储选项

In short Android has a variety of offline storage options


  • 共享首选项

  • 内部存储

  • 外部存储

  • SqLite数据库

  • Shared Preferences
  • Internal Storage
  • External Storage
  • SqLite Database

所有都有优点和缺点,请在此处阅读:
http://developer.android.com/guide/topics/data/data-storage.html

All have various pros and conns, have a read here: http://developer.android.com/guide/topics/data/data-storage.html

您还可以使用第三方解决方案,例如firebase,parse,google ect。所有人都有自己的特权,这取决于您的需求。

You can also use a third party solution such as firebase, parse, google ect. All have their perks, it depends on your needs.

祝你好运。

这篇关于在Android应用程序上离线存储数据的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆