使用Assets文件夹下的资源

1. 使用AssetManager

Resources res = getResources();
AssetManager am = res.getAssets();
String filePath = "demo.png";
try {
    InputStream is = am.open(filePath);
} catch (IOException e) {
    e.printStackTrace();
}

你可能感兴趣的:(android,assets)