在res/raw中的文件

    放在res/raw目录中的资源文件称为RAW资源。该目录中的任何文件不会被编译。可以通过Resource.openRawResources方法获取指定文件的InputStream对象,然后把文件通过OutputStream写入SD卡:

      InputStream is = getResources().openRawResources(R.raw.test);

posted on 2012-03-06 21:29  lee0oo0  阅读(449)  评论(0)    收藏  举报