您应该将文件放在Android项目的
/assets或
/res/raw目录中。从那里,您可以使用
Context.getResources().openRawResource(R.raw.filename)或检索它
Context.getResources().getAssets().open("filename")。
您应该将文件放在Android项目的
/assets或
/res/raw目录中。从那里,您可以使用
Context.getResources().openRawResource(R.raw.filename)或检索它
Context.getResources().getAssets().open("filename")。