This is a conceptual doubt I have. Request some one to resolve my doubt. I have an app of size of 4.5MB and I am calculating memory usage of processes in the app. I am getting each process memory usage as 16MB...
final Runtime rt = Runtime.getRuntime();
rt.gc();
final double startSize = rt.totalMemory()-rt.freeMemory();
What I am getting is correct or wrong?Does it mean that Memory usage of app same is same as size of app?