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 デバイスにインストールするために .apk ファイルを作成しました。この .apk ファイルを使用して、テキスト ファイルを含むフォルダを含めてメモリ カードに保存することはできますか? デバイスにアプリケーションをインストールし、フォルダをメモリ カードにコピーします。
なぜあなたは使わないのですasset/か?
asset/
apkのassets/フォルダーは、追加のユーザー ファイルを任意の形式で保存することを目的としています。それらはコンパイル段階で自動的に apk に含まれ、関数を使用してアプリからアクセスできますgetAssets()。例えば:
assets/
getAssets()
final InputStream is = getResources().getAssets().open("some_file.xml")