Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は現在Android IMEを開発しており、それを辞書として使用するファイルが必要なので、それを読み書きしたいと考えています。
まず、このファイルをプロジェクトにインポートするにはどうすればよいですか?
次に、デバイスのどこに保存されますか?
そして最後に、削除できないと思いますよね?
前もって感謝します!
変更されないファイルの場合は、アセットフォルダーに入れることができます。これはアプリケーション(.apk)の一部であるため、ユーザーは削除できません。以下を使用して読むことができます、
InputStream is = getAssets().open("yourDictionaryFileName");