获取assets文件内容,raw内容

1.均采用流的方式获取里面的内容

    assets

context.getAssets().open(“fileName”);

raw

InputStream inputStream = context.getResources().openRawResource(R.raw.config);

 

posted @ 2017-12-29 15:52  贺长寿  阅读(177)  评论(0编辑  收藏  举报