开发者

How to use ACTION_DEVICE_STORAGE_LOW to avoid OutOfMemoryError?

开发者 https://www.devze.com 2023-02-16 12:47 出处:网络
I found in one post regarding OutOfMemoryError(mainly due to B开发者_Go百科ITMAP) that it can be Notified with Broadcastreceiver (ACTION_DEVICE_STORAGE_LOW) when Heap is going to full. Can any one tel

I found in one post regarding OutOfMemoryError(mainly due to B开发者_Go百科ITMAP) that it can be Notified with Broadcastreceiver (ACTION_DEVICE_STORAGE_LOW) when Heap is going to full. Can any one tell how to implement this broadcast Receiver and avoid OutOfMemoryError?


ACTION_DEVICE_STORAGE_LOW notifies you that the space on the phone's permanent storage is running low. It has nothing to do with space on your application's heap, so you cannot use it for this purpose.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号