retrieving freeMemory(), totalMemory() & MaxMemory from other applications

Showing 1-3 of 3 messages
retrieving freeMemory(), totalMemory() & MaxMemory from other applications aljo 7/5/09 10:39 PM
Is there a way to retrieve the free memory, total memory and maximum
memory of other applications/processes using my application? I use
Runtime.getRuntime().freeMemory() but it can only retrieve your
current application... If there's somehow a method where I can just
input their PIDs or Package Names like "Runtime.getRuntime().freeMemory
().packageName" for example.. Here's my code...

int availProc = Runtime.getRuntime().availableProcessors();
                long total = Runtime.getRuntime().totalMemory();
                long free = Runtime.getRuntime().freeMemory();
                long max = Runtime.getRuntime().maxMemory();

                Toast.makeText(getApplicationContext(),availProc + "\nTM "
                                + Long.toString(total) + "\nFM " + Long.toString(free)
                                + "\nMM" + Long.toString(max),
 
Toast.LENGTH_SHORT).show();
                }
Re: retrieving freeMemory(), totalMemory() & MaxMemory from other applications aljo 7/12/09 2:59 AM
any information guys??
Re: [android-developers] Re: retrieving freeMemory(), totalMemory() & MaxMemory from other applications Dianne Hackborn 7/12/09 8:40 AM
No, sorry.--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.