发布网友 发布时间:2022-04-23 02:04
共1个回答
热心网友 时间:2023-07-10 16:02
AssetManager assetManager = getResources().getAssets();
InputStream inputStream = null;
try {
inputStream = assetManager.open("foo.txt");
if ( inputStream != null)
Log.d(TAG, "It worked!");
} catch (IOException e) {
e.printStackTrace();
}