开发者

I/O with dictionary file on an Android Input Method (IME)

I am currently developing an Android IME and I want to have a file that I will use it as a dictionary so I want to read and write it.

First of all, how do I import this file in the project?

Secondly, where is it storred开发者_如何转开发 in the device?

And lastly, I assume that it cannot be deleted, right?

Thank you in advance!


If it's a file that won't be modified, you can put it in assets folder. Users won't be able to delete it since it's part of your application (.apk). You can read it in using the following,

InputStream is = getAssets().open("yourDictionaryFileName");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜