在Android应用程序上离线存储数据的最佳方法是什么?

编程入门 行业动态 更新时间:2024-10-28 18:25:43
本文介绍了在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

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

All have various pros and conns, have a read here: developer.android/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应用程序上离线存储数据的最佳方法是什么?

本文发布于:2023-11-24 09:31:25,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624663.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:离线   应用程序   方法   数据   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!