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?
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.
And you can access the full A-Z offline to look up any word in the dictionary, anytime, anywhere.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With