With the static utility class memory, the working memory size, as well as the storage estimate can be queried. The working memory size is only an approximate number to protect users with low- and high-end devices.


// Gibt aus, wie viel Speicher das Gerät ungefähr hat.

// Gibt die Storage Quota und Storage Usage aus
Memory.getStorageEstimate(estimate -> {
  System.out.println("Quota: " + estimate.getQuota());
  System.out.println("Usage: " + estimate.getUsage());