views:

28

answers:

0

Have been trying to find out memory usage on the android applications on the phone. Just for fun and testing.

But when using the code snippet from here http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android/3479710#3479710

I'm getting zero on pidMemoryInfo.getTotalPrivateDirty() pidMemoryInfo.getTotalPss() pidMemoryInfo.getTotalSharedDirty()

So I thought I did something wrong. So I got a friend to test the code and it worked perfectly for him. Only diffrence is that he is using an HTC Desire (2.2) and I'm using a ZTE Blade (2.1, custom rom). Could that be the problem? Or do someone else got any idea?