10 2011 档案

摘要:res/raw和assets的相同点:1.两者目录下的文件在打包后会原封不动的保存在apk包中,不会被编译成二进制。res/raw和assets的不同点:1.res/raw中的文件会被映射到R.java文件中,访问的时候直接使用资源ID即R.id.filename;assets文件夹下的文件不会被映射到R.java中,访问的时候需要AssetManager类。2.res/raw不可以有目录结构,而assets则可以有目录结构,也就是assets目录下可以再建立文件夹读取文件资源:1.读取res/raw下的文件资源,通过以下方式获取输入流来进行写操作InputStream is = getRes 阅读全文
posted @ 2011-10-27 18:06 silencer 阅读(5880) 评论(1) 推荐(1)
摘要:Coding is sort of like a superpower; with it you can create things that millions of people see. You can change the way people behave, the way they think, and the way they interact with others. This is beyond awesome, but I’ve also met a lot of people that think that this ability is inaccessible to t 阅读全文
posted @ 2011-10-18 12:50 silencer 阅读(580) 评论(0) 推荐(0)