上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 阅读:http://sish#去掉我#uok.com/forum/posts/list/342.html我很好奇为什么不能引用某网站的文字......对强弱等引用早有耳闻,却一直发现似乎无用武之地,今早看了 http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html 之后,发现必须好好了解才能写出好的程序啊。2、强引用 平时我们编程的时候例如:Object object=new Object();那object就是一个强引用了。如果一个对象具有强引用,那就类似于必不可少的生活用品,垃圾回收 阅读全文
posted @ 2013-10-26 16:50 yutoulck 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/training/articles/perf-anr.htm总的来说,要避免程序停止响应,就是不要再UI线程里进行工作,如果有需要长时间操作的,例如IO请求,数据库操作,下载等等,应该放在work threak.避免APP无响应的方法,最简便的就是使用AsyncTask。The most effecive way to create a worker thread for longer operations is with the AsyncTask class. Simply extend AsyncTask and imple 阅读全文
posted @ 2013-10-26 14:01 yutoulck 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://android-developers.blogspot.com/2010/07/multithreading-for-performance.html文章通过一个图像下载器来说明:下载代码:static Bitmap downloadBitmap(String url) { final AndroidHttpClient client = AndroidHttpClient.newInstance("Android"); final HttpGet getRequest = new HttpGet(url); try { HttpRespon... 阅读全文
posted @ 2013-10-26 13:48 yutoulck 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 阅读(需FQ):http://android-developers.blogspot.com/2012/05/using-dialogfragments.html例子使用了V4支持包。fragment_edit_name.xml 对话框Fragment代码:import android.support.v4.app.DialogFragment;// ...public class EditNameDialog extends DialogFragment { private EditText mEditText; public EditNameDialo... 阅读全文
posted @ 2013-10-26 10:52 yutoulck 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/topics/data/data-storage.html主要类型有:Shared Preferences 使用键值对存储Internal Storage 在内存存储私人数据。External Storage 在内存存储共用的数据。SQLite Databases 使用内部数据库。Network Connection 网络连接来存储。使用Shared Preferences可以通过以下方式获取SharedPreferences: getSharedPreferences() - Use this if you need 阅读全文
posted @ 2013-10-25 19:54 yutoulck 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/topics/graphics/overview.htmlAnimation:The Android framework provides two animation systems: property animation (introduced in Android 3.0) and view animation. Both animation systems are viable options, but the property animation system, in general, is the prefe 阅读全文
posted @ 2013-10-25 19:03 yutoulck 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/topics/resources/accessing-resources.htmlAlthough the R class is where resource IDs are specified, you should never need to look there to discover a resource ID. A resource ID is always composed of:The resource type: Each resource is grouped into a "type,&q 阅读全文
posted @ 2013-10-24 22:14 yutoulck 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/topics/resources/providing-resources.html安卓开发的文件结构及其含义:DirectoryResource Typeanimator/XML files that define property animations.anim/XML files that define tween animations. (Property animations can also be saved in this directory, but the animator/ directory is 阅读全文
posted @ 2013-10-24 21:52 yutoulck 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/components/processes-and-threads.htmlWhen an application component starts and the application does not have any other components running, the Android system starts a new Linux process for the application with a single thread of execution. By default, all compone 阅读全文
posted @ 2013-10-24 21:30 yutoulck 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 阅读:http://developer.android.com/guide/components/intents-filters.htmlintent可以用在:1、Context.startActivity() or Activity.startActivityForResult() ;2、Context.startService() 、Context.bindService() 。3、Intent objects passed to any of the broadcast methods (such as Context.sendBroadcast(), Context.sendOrder 阅读全文
posted @ 2013-10-24 20:25 yutoulck 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页