【问题标题】:How to store .txt dictionary file in android as it is and retrieve words from it如何在android中存储.txt字典文件并从中检索单词
【发布时间】:2013-01-13 20:24:24
【问题描述】:

我正在开发 android 应用程序,它将提供字典支持(打字时的建议)。 所以,我有一个包含 50000 个单词的文本格式(.txt)的目录。所以是否可以像在 android 中一样存储和检索 .txt 文件。

请提出一些方法

【问题讨论】:

标签: java android autocomplete android-widget


【解决方案1】:

您可以将该文件放在assetsraw 文件夹中

阅读

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

更多见this回答

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-09
    • 2019-10-14
    • 1970-01-01
    • 2016-06-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多