Changes between Version 3 and Version 4 of question_new


Ignore:
Timestamp:
08/25/2014 04:25:59 PM (12 years ago)
Author:
liaojiaohe
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • question_new

    v3 v4  
     1Q:assets与res/raw的不同?[[BR]] 
     2A: 简单来说assets用于存放需要打包到应用程序的静态文件,以便部署到设备中,支持任意深度的子目录,这些文件不会生成任何资源ID,访问的时候需要AssetManager类,使用/assets开始(不包含它)的相对路径名。[[BR]] 
     3res/raw中的文件会被映射到R.java文件中,访问的时候直接使用资源ID即R.id.filename; InputStream is =getResources().openRawResource(R.id.filename);[[BR]] 
     4 
     5 
    16Q: 要不要通过标注缩减初始化代码?像 [https://github.com/roboguice/roboguice/wiki roboguice],[https://github.com/excilys/androidannotations/wiki AndroidAnnotations], [http://jakewharton.github.io/butterknife/ butterknife][[BR]] 
    27 
    38Q:是否需要是用DAO[[BR]] 
    4