I am trying to get the total internal storage of the device like user storage with device storage. i am able to get the internal device storage using this code.
final File path = Environment.getDataDirectory();
StatFs stat = new StatFs(path.getPath());
long bytesAvailable = (long)stat.getBlockSize() * (long)stat.getBlockCount();
long megAvailable = bytesAvailable / 1048576;
but the problem is that in my device i have 16GB internal memory and the result i am getting is 11GB. its not showing the System memory(where OS stored).