2016年4月8日
摘要: 1 android从资源文件中读取文件流并显示的方法。 在android中,假如有的文本文件,比如TXT放在raw下,要直接读取出来,放到屏幕中显示,可以这样: private void doRaw(){ InputStream is = this.getResources().openRawRes 阅读全文
posted @ 2016-04-08 00:12 左手指月 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 2 1 b、读取res/drawable目录下的 png或者bmp Resources r = this.getContext().getResources(); //以数据流的方式读取资源 Inputstream is = r.openRawResource(R.drawable.mm_image 阅读全文
posted @ 2016-04-08 00:09 左手指月 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.zgan.community/com.zgan.community.activity.CommunityPolicitalDetailActivity}: 阅读全文
posted @ 2016-04-08 00:02 左手指月 阅读(1152) 评论(0) 推荐(0) 编辑