O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Stack trace analysis

No need to lie. I know it happened. Do not be ashamed, it happened to all of us... your program crashed, without a reason! You think probably the device is getting old or Android is broken. We all made that reflection but ninety-nine percent of the time, we are the ones to blame!

Debuggers are the tremendous tool to look for problems in your code. But they work in real time when programs run. They assume you know where to look for. With problems that cannot be reproduced easily or that already happened, debuggers become sterile.

Hopefully, there is a solution: a few utilities embedded in the NDK help to analyse ARM stack traces. Let's see how they work.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required