随笔 - 390  文章 - 51  评论 - 166  阅读 - 199万
06 2012 档案
Android把res/raw的资源转化为Uri形式访问(android.resource://)
摘要:Andorid应用会在打包成Apk时把应用中使用的资源文件都打包进去了,尤其是我们熟悉的assets和res文件夹里面存放的资源文件, 一般情况下我们可以直接使用AssetManager类访问Apk下的assets目录,而对于res目录下的资源,我们很少直接使用他们,基本上都是通过它们的id在代码中使用。那么是否可以直接访问APK压缩包中Res目录下的内容呢? 比如需要访问res/raw这样的文件夹?如果我们想访问res/raw/sample.png文件,可以使用android.resource://package_name/" + R.raw.sample.png这种格式来获取对应 阅读全文
posted @ 2012-06-21 11:57 lee0oo0 阅读(22468) 评论(4) 推荐(0) 编辑
PhoneGap之Start In Android配置
摘要:Getting Started with AndroidThis guide describes how to set up your development environment for Cordova and run a sample application. Note that Cordova used to be called PhoneGap, so some of the sites still use the old PhoneGap name.1. RequirementsEclipse 3.4+2. Install SDK + CordovaDownload and ins 阅读全文
posted @ 2012-06-04 14:40 lee0oo0 阅读(2422) 评论(1) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示