How to get ndk-gdb working on Android?

You don’t need to use -O0 or -g switches. You need to do one of following: put android:debuggable=”true” to the <application> tag in AndroidManifest.xml file use NDK_DEBUG=1 after ndk-build put APP_OPTIM := debug in Application.mk file Doing anyone of these three things will automatically use -O0 and -g switches. Can you try running gdb manually, … Read more

unused DT entry: type 0x1d arg

What are “unused DT entry” errors? If you have reached this page, it’s probably because you have compiled or attempted to run some binaries on your ARM based Android system, with the result that your binary/app crashes or generates a lot of warnings in your logcat. Typically something like this: WARNING: linker: /blahblah/libopenssl.so: unused DT … Read more

Redirect stdout to logcat in Android NDK

setprop log.redirect-stdio true redirects only output generated by java code, but not the native code. This fact is described on developer.android.com in following way: By default, the Android system sends stdout and stderr (System.out and System.err) output to /dev/null. In processes that run the Dalvik VM, you can have the system write a copy of … Read more

Creating a product SDK: How do I add a native lib (.so) and a jar with the SDK I am creating?

I spent some time on this, and i just can’t understand why isn’t this written on wikitude documentation…. anyway follow this changes! go to windows/preferences/android/build uncheck the first and the second option extract files from wikitudesdk.jar with winrar as if it is an archive, search libarchitect.so and copy it in /libs/libs/armeabi/ add wikitudesdk.jar to your … Read more

Why do some Android phones cause our app to throw an java.lang.UnsatisfiedLinkError?

EDIT: Since I got another crash report yesterday for one of my apps I dug a bit deeper into the matter and found a third very likely explanation for that problem: Google Play Partial APK Update Goes Wrong To be honest, I did not know about that feature. The APK file name suffix “-2.apk” made … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)