-2

I am a beginner on Android development, I should develop 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 the 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

n-anselm
  • 77
  • 1
  • 5
nadia
  • 17
  • 2
  • 3
  • 1
    It depends on the type, format, and amount of data to be stored. There's no one answer, any of those could be appropriate. – Gabe Sechan Mar 07 '16 at 10:45

3 Answers3

4

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.

In short Android has a variety of offline storage options

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

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

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

Good luck.

James
  • 3,485
  • 3
  • 20
  • 43
  • 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 the app should works offline to be used even without connection.I hope that the idea become clear and you will help me . – nadia Mar 07 '16 at 11:09
0

In my opinion SQLite is a good way to store data offline, but if you'd want to save just a few Strings or something like that then it can also be done by using SharedPreferences.

Dennis van Opstal
  • 1,294
  • 1
  • 22
  • 44
0

Well Pal! its completely depends upon the type of App you want to develop but in my opinion the best way to store the data is using Sqlite database if you are storing user related information or if you are storing session (application) data then you should use SharedPrefrences instead. Hope this would help!!:)

Akshat Vajpayee
  • 274
  • 1
  • 3
  • 15
  • 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 the app should works offline to be used even without connection.I hope that the idea become clear and you will help me – nadia Mar 07 '16 at 11:10
  • In this scenario you must use SQlite database to store all the forms corresponding to each english letter as the amount of data must be great. – Akshat Vajpayee Mar 07 '16 at 11:28