开发者

My Android Application Take Too Much Memory?

开发者_运维百科I've built a simple android program. The program uses an SQL database and has a lot of pictures.

When I check how much RAM my application takes, I see that it uses 4.5M the first time I launch it, and grows by something like 1M every time I exit it via the back or the the home button, and re-enter it.

My question is- is it normal for a program that doesn't do something complicated(a calculation regarding drinking and driving), that uses a database and has a lot of images, to consume that amount of memory?

Thanks!


They actually just published a post about tracking down memory leaks on the Android Developer blog a couple hours ago: http://android-developers.blogspot.com/2011/03/memory-analysis-for-android.html?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+blogspot%2FhsDu+%28Android+Developers+Blog%29


I would say that's not normal. A program should not grow in size by 20% just from exiting and re-entering. I would look at what you're doing on exit and load, to see if there's something you're storing but not cleaning up.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜