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();
                }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to