I’m getting sigsegv 11 in native code and i need to avoid stripping to understand what’s wrong. The app uses library (aar) and i was able to avoid stripping for the aar with ‘cmd-strip’ hack. But in the apk stripped version of .so is used anyway so the app strips the symbols, probably while transformNative_libsWithStripDebugSymbolForDebug […]
OK, so I have the native code below. I’m trying to return an array of FilePermissionInfo from it, populated with some data returned by stat(). The problem is that I get the following error when NewObject is called the first time: 06-15 20:25:17.621: W/dalvikvm(2287): Invalid indirect reference 0x40005820 in decodeIndirectRef 06-15 20:25:17.621: E/dalvikvm(2287): VM aborting […]
I have an Android application which uses the NDK to execute a large amount of floating point math. I just acquired a new Galaxy Nexus. To my surprise, my app runs MUCH slower than it should. I suspect this is because most devices are using hardware acceleration and the Galaxy Nexus is not. If I […]
My app is written entirely in C/C++ using NativeActivity, it has no Java code (based on “native-activity” NDK example). Pressing “back” button closes it (destroys activity), but I need other behaivor of this button because I have my own UI and menus which are displayed via OpenGL. As I read, In order to change behaivor […]
I have Android application, which needs to establish unix domain socket connection with our C++ library (using Android NDK) public static String SOCKET_ADDRESS = “your.local.socket.address”; // STRING There is LocalSocket in java which accepts “string” (your.local.socket.address) #define ADDRESS “/tmp/unix.str” /* ABSOLUTE PATH */ struct sockaddr_un saun, fsaun; if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) […]
When I am trying to install Android NDK plugin from Android Developer Tools Update Site – https://dl.google.com/android/eclipse/ in my Eclipse, it is showing the the following error message – I am using Android Developer Tools from Google, Build: v22.6.2-1085508. And I have downloaded android-ndk-r9d-windows-x86_64. ‘Installing Software’ has encountered a problem. An error occurred while collecting […]
im writing an application that uses only native code. So is it possible to get multitouch events in ndk? I feel like ive serched the whole web, but without finding anything! Does anyone know how to do this?
I have been trying to use C++11. I am developing an android project and i want to use std::mutex. Along with OpenCV But no matter what I do, I just cant seem to fix the Type ‘mutex’ could not be resolved error. I have tried following the tutorials i found on SO and other places. […]
I’ve been getting this message for the past day or so, and up until now it hasn’t caused a problem. I got my code to run with my native library earlier but today I added a few new functions and again it will not work. There are no errors displayed in LogCat, but my program […]
Is there anyway I could write 100% native C code for Android? I know there are ways to write some C code inside Java code, but I don’t know any Java and I hate Java anyway. Is there anyway I could write pure C code that will run under Android?