android优化分析 DDMS


2014-2-7号补充:

  • 建立连接前按Wifi-3G-2G顺序检查网络
  • 不要保持2G/3G连接
  • wifi可用时,尽量用push,不要用定时查询
  • 优化应用程序的设计和算法
  • 使用简单高效的数据
  • 使用gzip压缩
  • 数据流>树-节点层次结构
  • Ex, protobuf>json>xml

http://blog.csdn.net/xyz_lmn/article/details/6040164
http://docs.eoeandroid.com/training/monitoring-device-state/index.html


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Android优化的官方文档

http://developer.android.com/tools/debugging/debugging-tracing.html


Android DDMS使用分析

http://blog.csdn.net/maybe_windleave/article/details/8592957

http://www.tuicool.com/articles/JBFv6v

TraceView分析

http://www.cnblogs.com/devinzhang/archive/2011/12/18/2291592.html

优化讲解

http://www.2cto.com/kf/201303/196915.html

Lint

http://blog.csdn.net/hudashi/article/details/8333349

http://blog.sina.com.cn/s/blog_98a0937f0100ylcz.html

http://www.linuxidc.com/Linux/2012-09/71077.htm


--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

公司讲座总结:
1.Google Volley总结:
一个Google出的网络请求的框架,可以异步的请求网络数据,比如图片啊,列表的数据什么的。

这篇博客讲的很赞啊!

http://blog.csdn.net/t12x3456/article/details/9221611

今天简单的试了试,觉得确实方便了不少,相当方便。而且最重要的是:我昨天下载了android4.4的工程源码,发现,Google已经把Volley这个框架放到framework中了,路径在framework-->Volley,这说明Google很重视这个东西啊,以后在4.4以后就可以利用这个东西进行网络请求了。不过只能先用自己的了,要想用Google的系统Volley,恐怕得等几年了。不过,如果对于进行系统级别开发的人来说,那是相当的方便啊。

Volley没有提供jar包,那么如何编辑编译jar包呢?参考下面两篇文章。

http://blog.csdn.net/superbinbin1/article/details/9336085

http://blog.lytsing.org/archives/908.html



2.图片缓存:BitmapFun

【工具类】ImageCache,图片缓存,访google的bitmapFun。
http://www.eoeandroid.com/thread-242840-1-1.html
(出处: eoe Android开发者社区_Android开发论坛)

http://blog.csdn.net/xu_fu/article/details/8269865

这两篇文档必须要好好读一下才是啊
http://developer.android.com/training/displaying-bitmaps/index.html
http://developer.android.com/training/displaying-bitmaps/cache-bitmap.html

DiskLruCache.java
http://code.google.com/p/android/issues/attachmentText?id=29400&aid=294000000000&name=DiskLruCache.java&token=Rstp2OFViiWaUGS68yFfFgMQDEk:1335231242264


又是一个开源库:
http://code.google.com/p/libs-for-android/
    This project hosts a collection of open source libraries for the Android platform, including:

    Feed Framework: A collection of classes to help you build content providers. The framework is specially designed to help connect your application to Web APIs. Learn more »

    Accounts Compatibility Layer: A thin wrapper around the accounts API introduced in Android 2.0 with a fallback implementation for Android 1.5 and Android 1.6. Learn more »

    File Cache: A simple file-based implementation of the ResponseCache API, customized for Android. Learn more »

    Image Loader: A helper component for loading images over HTTP. Learn more »

    HTML Widget: A light-weight widget for displaying snippets of HTML. Learn more



3.数据存储:
Gson ---- Object:可以之存储id和json串


4.列表优化,包括Listview等:
1)AdapterView 这个类中,有item type, 可以根据viewtype 判断当前显示哪个view,而不是频繁的判断然后setVisible或者inVisible.
2)OverDraw: 开发者选项中:显示gpu过度绘制,通过这个选项来分析原因  http://www.apkbus.com/android-116357-1-1.html
3)最后一个比较蛋疼的做法:每个item 做的比较大一些,就会看起来很流畅的说;


http://www.apkbus.com/android-116357-1-1.html


4.UI及布局优化



http://blog.csdn.net/l_serein/article/details/9446561

http://developer.android.com/tools/debugging/debugging-ui.html

http://www.trinea.cn/android/layout-performance/



///

2013-11-28号补充:

1. Android应用性能优化之使用SparseArray替代HashMap
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=228612&fromuid=511991

2. Android项目源码质量检测

http://blog.csdn.net/young_horse_xyz/article/details/7575958

 

3.android 最佳实践之性能设计

http://www.androidlearner.net/android-best-practice-performance.html

 

 
 
 android – 多屏幕适配相关
 http://www.androidlearner.net/android-multi-screen-about.html#comment-4
 
 
android 避免内存泄漏 – Avoiding Memory Leaks
http://www.androidlearner.net/android-avoiding-memory-leaks.html


android 使用StrictMode诊断程序性能
http://www.androidlearner.net/use-strictmode.html

android – ANR错误之 keyDispatchingTimedOut
http://www.androidlearner.net/anr-key-dispatching-timedout.html


android – 最佳实践之响应灵敏性
http://www.androidlearner.net/android-best-practice-responsiveness.html


android 使用开源工具ChkBugReport分析Bugreport
http://www.androidlearner.net/using-chkbugreport-analysis-bugreport.html

 

http://blog.csdn.net/a_asinceo/article/details/8222104





未完待续。。。



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值