Android进阶专题
文章平均质量分 75
奋进的小人物
这个作者很懒,什么都没留下…
展开
-
android进阶篇一、Bitmap内存管理及各版本区别
对于android内存管理上,最重要的还是Bitmap内存的使用,以前对于Bitmap的内存总是一知半解状态,只是知道需要调用recyle()最安全。今天对于内存的管理做一个总结。 Android内存回收机制 在Android2.2(API 8)以及更低的版本中,当发生垃圾回收时,你的应用线程会停止。这会导致延迟,使得性能降低。Android2.3添加了并发垃圾原创 2015-03-07 20:56:14 · 568 阅读 · 0 评论 -
android进阶篇二 Android硬件加速详解 Hardware Acceleration
文档地址: http://developer.android.com/guide/topics/graphics/hardware-accel.html 工作太忙没时间翻译,贴出来方便不能翻墙的同学查阅 See also OpenGL with the Framework APIsRenderscript Beginning in Android 3.0 (A原创 2015-03-31 16:49:17 · 4767 阅读 · 0 评论 -
Android如何避免ANR 增加相应速度 Keeping Your App Responsive
源地址:http://developer.android.com/training/articles/perf-anr.htmlWhat Triggers ANR? How to Avoid ANRs Reinforcing Responsiveness Figure 1. An ANR dialog displayed to the user.It’s possible to write code原创 2015-08-06 14:50:04 · 421 阅读 · 0 评论 -
Android性能优化建议 Performance Tips
Avoid Creating Unnecessary Objects Prefer Static Over Virtual Use Static Final For Constants Avoid Internal Getters/Setters Use Enhanced For Loop Syntax Consider Package Instead of Private Access with原创 2015-08-06 14:35:52 · 677 阅读 · 0 评论 -
Android lint优化 Improving Your Code with lint
源地址:http://developer.android.com/tools/debugging/improving-w-lint.htmlIn addition to testing that your Android application meets its functional requirements, it’s important to ensure that your code has原创 2015-08-06 16:16:55 · 620 阅读 · 0 评论 -
Android 内存使用分析 Investigating Your RAM Usage
源地址:http://developer.android.com/tools/debugging/debugging-memory.htmlBecause Android is designed for mobile devices, you should always be careful about how much random-access memory (RAM) your app use原创 2015-08-06 16:42:36 · 808 阅读 · 0 评论