优化版本之前的Andr​​oid应用 [英] Optimising Android application before release

查看:95
本文介绍了优化版本之前的Andr​​oid应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在的特别的情况有关效率我的计划。现在,我在一个阶段,我需要提高应用程序的性能,减少的电池消耗的。

I'm in a "special" situation about efficiency of my program. Now I'm at a phase where I need to improve the performance of the application and reduce battery consumption.

这个问题之前:

  • First of all, my application work. It runs fine - no errors whatsoever.
  • Secondly, I have read Designing for Performance on Android developers website and I have optimised small things they've requested. No problems whatsoever.

现在,我很好奇,想知道其他开发商的特别的,他们已经习惯了优化自己的应用程序修复。的东西,用户可能永远不会承认还是要注意。但是,修补要么增加电池寿命,或有助于提高维护的应用程序。

Now, I'm curious to know about other developers' special fixes which they have used to optimise their own applications. Stuff that users may never recognise or pay attention to. However, the fixes will either increase the battery life or help improve maintenance of the application.

因此​​,什么是你的独特的优化绝招(S)?

我在一个特定的情况下,我真正需要的知识,我认为这将是一个很好的机会,分享的情况下他们都已经在开发知识。

I'm in a particular situation where I'm really looking for knowledge and I think this will be a great opportunity to share developers knowledge about a situation they've all been in.

请,投了伟大的答案是,这将鼓励大开发商分享他们的知识。

Please, vote up great answers as that will encourage great developers to share their knowledge.

推荐答案

在某些时候,你会去哪里使用已知的技巧将达到自己的极限点。做到这一点的最好的事情是分析您的code,看看哪些方面是瓶颈根据您的具体要求。

At some point you are going to get to the point where using known tricks will hit their limits. The best thing to do at this point is profile your code and see what areas are the bottle-necks based on your specific requirements.

性能分析与Traceview和dmtracedump :关于如何使用这些工具来一篇文章分析应用程序。

Profiling with Traceview and dmtracedump: an article on how to use the tools to profile your application.

这篇关于优化版本之前的Andr​​oid应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆