stackoverflow
stackoverflow

Reputation: 19434

Android how do I read resource file within project

I'm trying to read the file DictionaryWords in the image below

enter image description here

How do I read in this file?

Upvotes: 2

Views: 1967

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 992707

You can move the DictionaryWords file to your assets folder, which will then cause it to be included in your .apk. Then you can open it with something like:

context.getAssets().open("DictionaryWords")

Upvotes: 7

Related Questions