Android应用程序优化 [英] Optimization of Android Applications

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

问题描述

我要尽我的Andr​​oid应用程序的优化。

I want to do optimization of my android application.

谁能告诉都有哪些不同的方式来优化code和性能的Andr​​oid?

Can anyone please tell what are different ways to optimize code and performance in android?

我通过一个工具,即 Zipalign了:一个简单的优化

任何其他工具avaliable?

Any other tools avaliable?

感谢你。

推荐答案

有没有简单的工具,它神奇地使你的应用程序速度更快(zipalign只是提高了加载时间)。你需要学习如何编写高性能code。该SDK提供了一些有用的提示: http://developer.android.com/guide/做法/设计/ performance.html

There's no easy tool that just magically makes your app faster (zipalign just improves loading times). You'll need to learn how to write performant code. The SDK has some useful tips: http://developer.android.com/guide/practices/design/performance.html

如果你有一些CPU密集型的重型吊装,你可以重写,与NDK。

If you have some CPU-intensive heavy lifting, you can rewrite that with the NDK.

请记住,优化code需要一定的时间,可以引入错误。一定要分析您的code,找到瓶颈,并专注于快速得到这些。

Keep in mind that optimizing code will take time and can introduce bugs. Be sure to profile your code, find bottlenecks, and focus on getting those fast.

这篇关于Android应用程序优化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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