2014年3月24日
摘要: 第一种方法: String path = "file:///android_asset/文件名";第二种方法: InputStream abpath = getClass().getResourceAsStream("/assets/文件名");若要想要转换成String类型String path = new String(InputStreamToByte(abpath ));private byte[] InputStreamToByte(InputStream is) throws IOException { ByteArrayOutputStre 阅读全文
posted @ 2014-03-24 22:55 大米稀饭 阅读(3500) 评论(0) 推荐(0)