2

When Android occurred system memory low intent: android.intent.action.DEVICE_STORAGE_LOW would be send But I'm curious about

  1. What's the critical value that would trigger memory low event?(How was the critical value decided?)
  2. Is there a API I can use to query if current system is at memory low state?
  3. When user released some memory, is there a intend would be send to notify APs that system is no longer at memory low status?
superx3
  • 175
  • 1
  • 9
  • http://stackoverflow.com/questions/8133417/android-get-free-size-of-internal-external-memory – IntelliJ Amiya Jan 22 '16 at 08:25
  • http://stackoverflow.com/questions/3394765/how-to-check-available-space-on-android-device-on-mini-sd-card – IntelliJ Amiya Jan 22 '16 at 08:26
  • Thanks a lot for help! So there is no framework API can be used? What if AP want to do someting when system become "not memory low"?(start a alarm keep monitoring? Is there a better way?) – superx3 Jan 22 '16 at 08:40
  • Can I dynamically adjust the "memory low threshold" value? – superx3 Jan 22 '16 at 08:41
  • fisrt one question had no answer yet><.... ; After futher check I found the threshold is got form: public long getStorageLowBytes(File path) in StorageManager.java ;for those who have simlair question can reference to this API. But I still can't find the answer to qestion2(execpt calculating by self) & 3 ><.... – superx3 Jan 25 '16 at 07:39

0 Answers0