This library enables the StrictMode. It's useful to detect memory leaks, SQL cursors still opened or undesirable accesses to disk.
The library includes also two functions returning the available memory of your application and the remaining memory.
Example of use (right after Activity_Create):
The report is made in the system log. Uncheck Filter if you want to see the log entries in the B4A log window. IMHO, you should better use LogCat of the Monitor tool (a tool provided with the Android SDK). LogCat allows custom filters (you can filter the tag "StrictMode" or your application name).
Please don't ask me questions on how to debug your application with StrictMode. I provide a library, not a debugging service.
Don't forget to remove the calls to this library when you release your product.
The library includes also two functions returning the available memory of your application and the remaining memory.
Example of use (right after Activity_Create):
B4X:
Dim SM As StrictMode
SM.EnableStrictModeForAll(True, False)
Please don't ask me questions on how to debug your application with StrictMode. I provide a library, not a debugging service.
Don't forget to remove the calls to this library when you release your product.
Attachments
Last edited: