How to get Callstack in Android Log File

When you are running into bugs or issues in you Android Apps, callstack information of your components would be very much helpful, defintely.

Here is a post I’v found in freescale community, auther by MingZhou, it instructs you have get the caller stack information for you Android App or components. The original url is:


Print caller stack may help you to analyze the program and find out the caller stack more easily.

You can write your code like this:


C++ file:

Then you can see the function’s caller stack in Android main log file.

C file:

In, add libcorkscrew, as below


Leave a comment

Your email address will not be published. Required fields are marked *