Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android dictionary application with offline database

I want to develop an android English dictionary application that uses only an offline database. By that, I mean to say that it doesn't have to be redirected to online dictionary like WordWeb or the like. Does anybody know what should I do to store my words? I'm thinking of using SQLite since it's mobile. But if anyone here already has done or did something what I want to do, can you give me some expert suggestions?

like image 531
Dunkey Avatar asked Sep 11 '12 12:09

Dunkey


People also ask

How can I use dictionary offline?

Tap and hold a word. On Android 5: Open the dictionary drop-down menu, select the offline dictionary, then tap the magnifying glass. , then Define (Dictionary name) to define the word in your offline dictionary.

Is Oxford Dictionary app offline?

And you can access the full A-Z offline to look up any word in the dictionary, anytime, anywhere.

Is Merriam-Webster dictionary offline?

Offline access: You'll have complete access to definitions whether or not you're connected. * Word of the Day: learn a new word every day. Fully featured and absolutely free, this app is supported by ads.


2 Answers

http://developer.android.com/resources/samples/SearchableDictionary/src/com/example/android/searchabledict/DictionaryDatabase.html

I have used this code from developer.android.com . Hope it will help you also.

EDIT: This page is no longer available, but the example itself is on Github here.

like image 174
Syamantak Basu Avatar answered Sep 30 '22 16:09

Syamantak Basu


I'd go with using SQLite, that's probably the easiest and most straightforward way to do it on Android. Of course the complexity of this solution depends on you exact needs. If you only need a really simple dictionary, then you could get away with a simple db schema with basic queries.

Another thing that comes to mind is the Trie data structure, you may want to look into that: http://en.wikipedia.org/wiki/Trie#Dictionary_representation . But it probably wouldn't worth the hassle to pull this off using this, I'd guess that the performance of the SQLite solution is more than enough for your needs.

like image 21
Zsombor Erdődy-Nagy Avatar answered Sep 30 '22 16:09

Zsombor Erdődy-Nagy