I have file kanji.xls. I would like to get that file through new File(); What should I write inside that constructor? I tried many options but didn't find correct answer...
I tried:
- /kanji.xls
- /Kanji database/kanji.xls
- //Kanji database//kanji.xls
- kanji.xls
Use
assets
directory in your project to store this file and read file from there. Android – Read file from Assets will guide you.if you don't wish to use
assets
directory,Create directory as
Kanji_Database
instead ofKanji database
. Then use below code.