什么是可以接受的Andr​​oid内存消耗? [英] What is acceptable android memory consumption?

查看:114
本文介绍了什么是可以接受的Andr​​oid内存消耗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android与漂亮的图形比较小的应用程序,包含9patch可绘制的主要消耗约内存10MB的

My relatively small application for Android with nice graphics that consists mostly of 9patch drawables consumes about 10MB of the memory.

你是否认为这是确定?或者我应该以某种方式优化呢?什么是小应用是可以接受的内存消耗?

Do you think that it is OK? Or I should optimize it somehow? What is acceptable memory consumption for small applications?

推荐答案

要获得近似的每个应用程序的内存限制,您可以使用的活动的成员函数

To get approximate per-application memory limit for any device you can use Activity member function

 public int getMemoryClass ()

有是android系统中运行的应用程序,16 / 24MB内存限制。 <一href=\"https://groups.google.com/group/android-developers/browse_thread/thread/dad5be8ca26c1c51?pli=1\"相对=nofollow>这线程给你更多的信息。

There is a 16/24MB memory limit for application running in android. This thread gives you more info..

的教程会谈一些好的内存管理方法。

This tutorial talks about some good memory management practices..

这篇关于什么是可以接受的Andr​​oid内存消耗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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