Android studio 调用Assets中的xml文件

来源:互联网 发布:unturned汉化mac 编辑:程序博客网 时间:2024/06/06 19:11

加入我们assets中有个get_data.xml文件,我们再程序中需要解析该xml文件获取该文件的输入流。

InputStream in = getApplicationContext().getResources().getAssets().open("get_data.xml");
1 0