http://developer.android.com/tools/sdk/ndk/index.html
As you can see from the above link, android ndk r8e:
Added static code analyzer for Linux / MacOSX hosts. For information on using the analyzer, see CHANGES.HTML.
In CHANGES.HTML:
- Added static code analyzer for Linux / MacOSX hosts
- For ndk-build, either export NDK_ANALYZE = 1, or add it to the command line.
- For autonomous work, please refer to ndk-build, for example, to run scan-build using / path / to / standalone / bin // analyzer.
I added the ndk-build command NDK_ANALYZE = 1 to build, and it builds fine. But how exactly can I use the analyzer to detect memory problems? I did not find any documentation.