Questions tagged [android-ndk-r4]

The Android Native Development Kit enables users to call C/C++ code from their applications running in the Dalvik Virtual Machine. Use this tag only for questions relating specifically to revision 4 of the Android Native Development Kit. Otherwise, use the [android-ndk] tag, and make sure to include that anyway.

The Android Native Development Kit (NDK) enables users to call C/C++ code from their applications running in the Dalvik Virtual Machine.

Use this tag only for questions relating specifically to revision 4 of the Android NDK. Otherwise, use , and make sure to include that anyway.

Information about specific features in revision 4 is available at the NDK Revision History page.

16 questions
158
votes
11 answers

Where do I find old versions of Android NDK?

Does anyone know where I can find older versions of the Android NDK? Our code doesn't build with r6. Surely there must be archived versions somewhere.
lest
  • 1,589
  • 2
  • 10
  • 4
14
votes
1 answer

Android NDK incremental build

I'm currently working on a large Android app using a massive amount of C++ code. It compiles and runs, so far so good. Unfortunately, every time I modify something in the structure of my native source (add/delete/rename/move a file), which happens…
Alex
  • 153
  • 1
  • 4
13
votes
1 answer

Getting hardware floating point with android NDK

I've begun playing with the android NDK. One of the things I've just learnt is about creating an application.mk file to specify the armv7 abi. I'm building the san-angeles example with the following parameters. APP_MODULES :=…
Goz
  • 61,365
  • 24
  • 124
  • 204
3
votes
1 answer

Is there a way one can find out which ndk version was used to compile android .so share library?

Is there a way one can find out which ndk version was used to compile android .so share library ?
VendettaDroid
  • 3,131
  • 2
  • 28
  • 41
2
votes
2 answers

Android GLSurfaceView.Renderer is Interrupting an Incomplete Touch Event

This is a problem I've been having for a while and I'm hoping someone here might be able to shed some light on it. I have an Android game which loads a GLSurfaceView who's renderer is set up like this: public class GameRenderer implements…
Nick Gotch
  • 9,167
  • 14
  • 70
  • 97
1
vote
1 answer

App using NDK (native code) falls. How can i find out why?

My app is using NDK (4r-crystax in my case) to proccess images from a camera. Problem is, it falls after few minutes of work. I guess there can be some memory leaks or something like that, but i dont know how to find out where the problem is. This…
Komi
  • 330
  • 3
  • 13
1
vote
3 answers

Android NDK OpenGL ES 1.0 Simple Rendering

I'm starting out with the Android NDK and OpenGL. I know I'm doing something (probably a few) things wrong here and since I keep getting a black screen when I test I know the rendering isn't being sent to the screen. In the Java I have a…
Nick Gotch
  • 9,167
  • 14
  • 70
  • 97
1
vote
1 answer

NDK Issue: crash on 32bit, inconsistency on 64bit

I have this problem with my c++ code. It's a doing a graph search and it uses multiple threads. The threads don't depend on each other, they each have different search parameters, but will access read only the source graph, write only the results…
Auras
  • 7,556
  • 3
  • 25
  • 23
1
vote
2 answers

Android: Performances of Native/JNI code change from one phone to another

Hi all I'm having an problem with my JNI library. The execution time of the same code changes from one phone to the other. I thought it was just because we were testing on an old phone but recently I run on htc legend and all the jni code was…
Jason Rogers
  • 19,194
  • 27
  • 79
  • 112
1
vote
1 answer

android library linking

I don't if what I am trying to do is possible : I am trying to build the tesseract project (libocr) with the ndk. Compilation is ok but linking is wrong... with a lot of error like this : Android NDK: WARNING: Unsupported source file extensions in…
jpprade
  • 3,497
  • 3
  • 45
  • 58
1
vote
1 answer

Problem with SWIG generated JNI code on Android

I want to generate JNI wrappers from C/C++ code. Here is my interface file. /* aes_security.i */ %module jni_security_example %{ #include "pbkdf2.h" %} extern int pbkdf2_sha1 (const char *passphrase, size_t passphraseLength, const char…
Soumya Simanta
  • 11,523
  • 24
  • 106
  • 161
1
vote
1 answer

JNI sources in the APK

I have an Android project with an NDK/JNI library in Eclipse Ganymede. Inexplicably, the bin folder contains a copy of all my C++ sources from the jni folder. So does the APK, if you rename it to ZIP and examine. If I delete those files from bin,…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
1
vote
2 answers

Android-ndk with eclipse: How to force reinstallation of apk

I'm developing a library in c++ using the android NDK. Actually i created my project in android with both java and c++ sources. I can compile and run my project and all works fine. Now i would like to force eclipse to reinstall the apk on the phone…
hara
  • 3,274
  • 4
  • 37
  • 55
0
votes
1 answer

Getting the signal 11 (SIGSEGV), fault addr deadbaad in Android

I am building a C\C++ native application for android, trying to run it on android but I get the following error: 02-14 14:05:40.261: INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 02-14 14:05:40.261: INFO/DEBUG(31):…
Amit
  • 1
  • 1
  • 2
0
votes
0 answers

Fatal signal 7 (SIGBUS) at 0x3f8921d5 (code=1), thread 31131 (ohamsaa.ndktest)

I am trying to record audio using ndk and converting audio into frequency format. I refered this link to record audio.( https://audioprograming.wordpress.com/2012/03/03/android-audio-streaming-with-opensl-es-and-the-ndk/ ).I can record audio but…
1
2