1

I am developing android app which will provide dictionary support(suggestions while typing). So, I have a directory of 50000 words in text format(.txt).So is it possible to store and retrieve the .txt file as it is in android.

Please suggest some approaches

Padma Kumar
  • 19,893
  • 17
  • 73
  • 130
Ganesh
  • 251
  • 2
  • 13

1 Answers1

2

You can put that file in assets or raw folder

To read

String url = "file:///android_asset/raw/filename.txt";

for more see this answer

Community
  • 1
  • 1
MAC
  • 15,799
  • 8
  • 54
  • 95