Saturday, March 16, 2013

Debug android NDK

I have been trying to debug my android application for a few weeks now, and was unable to set breakpoints.
I finally figured out that there is a bug in the NDK, following the steps in this article link
To be able to set breakpoints I had to only build only one version of the shared libraries to avoid the linker from choosing the wrong shared library. Basically I had to change the file Application.mk with the following:
APP_ABI := armeabi armeabi-v7a
APP_ABI := armeabi #armeabi-v7a
Now I can continue using breakpoints within the android NDK.

Sunday, February 3, 2013

Ubuntu disable ctrl-p

Some laptops use ctrl-p to switch display. Ubuntu added support for this and broke my shortcut configuration. To disable ctrl-p switching displays type the following on a terminal:
dconf write /org/gnome/settings-daemon/plugins/media-keys/active false
reference