question

Android avatar image
Android asked

onLowMemory(), onTrimMemory() not called on Kindle Fire HD

Our applications are largely written in C++, I have hooked both the onLowMemory() and onTrimMemory() callback in the Java activity and forward the callback to our native code. This works fine on the older Kindle Fire and regular android devices, but neither of these callbacks seem to be triggered on the Fire HD (version 7.4.6). I have verified this by explicitly leaking memory and watching for the callbacks. Am I missing something? Should I be hooking some other callback to using some other method to query when memory is low?
fire tablet
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Android avatar image
Android answered
This is also happening on the HDX.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Hotheadgames, Thank you for writing to us. Can you please let us know how do you simulate low memory situation in the device?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.