http://fecbob.pixnet.net/blog/post/38385109
http://blog.csdn.net/guanmjie/article/details/6369831
http://developer.android.com/intl/zh-cn/reference/android/content/res/AssetManager.html
Provides access to an application's raw asset files; see
Resources
for the way most applications will want to retrieve their resource data. This class presents a lower-level API that allows you to open and read raw files that have been bundled with the application as a simple stream of bytes.Android 系統為每個新設計的程序提供了/assets目錄,這個目錄保存的文件可以打包在程序裡。/res 和/assets的不同點是,android不為/assets下的文件生成ID。如果使用/assets下的文件,需要指定文件的路徑和文件名。
沒有留言:
張貼留言