Questions tagged [android-ndk-r5]

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 5 of the Android Native Development Kit. Otherwise, use the [android-ndk] tag, and make sure to include that anyway.

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 r5 of the Android Native Development Kit. Otherwise, use , and make sure to include that anyway.

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

78 questions
6
votes
2 answers

Can't include STL header files with Android NDK r5

I've got a very simplistic application: #include void android_main(struct android_app* state) { } When I build it, I get the following error: test/jni/main.c:14:18: error: vector: No such file or directory How the hell do I include…
Mark Ingram
  • 71,849
  • 51
  • 176
  • 230
5
votes
1 answer

access android external SD card from native code

I'm developing a native apk for android with NDK 5. My question is, how do I access to write and read from external SD card from native code?
5
votes
1 answer

JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.ClassNotFoundException: Didn't find class

I am getting the following error: JNI DETECTED ERROR IN APPLICATION: JNI GetMethodID called with pending exception java.lang.ClassNotFoundException: Didn't find class "package.name.class" on path: DexPathList[[zip file…
andy
  • 65
  • 1
  • 8
5
votes
1 answer

Unable to build GStreamer tutorials using Android Studio

I am trying to build the tutorials that are bundled with gstreamer-sdk-android-arm-debug-2013.6. The Android.mk file in the src/jni directory (tutorial 1 project) references environment variables such as GSTREAMER_SDK_ROOT. From what I have read,…
svenyonson
  • 1,815
  • 1
  • 21
  • 30
5
votes
0 answers

How to add sound Effects on a sound file in Android

How to give audio effect for a mp3 file in android.For example echo effect mix some back ground music ect.
Rojesh
  • 235
  • 4
  • 13
4
votes
1 answer

What is cause of this error in android app - Channel is unrecoverably broken and will be disposed

My android app continuously gets the channel broken error and this closes down app automatecally. On log only following two lines will be prited in red ERROR/InputDispatcher(2687): channel '40561dd8 com.mypackage.myActivity (server)' ~ Consumer…
Sushil
  • 248
  • 3
  • 9
4
votes
2 answers

Problems trying to build PocketSphinxAndroidDemo using NDK

I am trying to compile PocketSphinxAndroidDemo, which provides an example implementation of the CMU pocketsphinx speech recognizer on Android. I first received an error similar to the discussion here. After executing ndk-build, I got this…
Nick Ruiz
  • 1,405
  • 4
  • 18
  • 28
4
votes
2 answers

JNI_OnLoad not found

I started android application development and followed this tutorial: http://mindtherobot.com/blog/452/android-beginners-ndk-setup-step-by-step/ but the application didn't work. I debug it and the log cat show this message: JNI_Onload not…
NMMA
  • 173
  • 1
  • 2
  • 13
3
votes
2 answers

How to read an existing pdf file using the itextpdf.jar file in java/Android

I want to read a pdf file using Java/Android from my SD card. I imported the itextpdf5.1.1.jar file in to Eclipse. I am able to read a file if I create a new file from an existing one, like this: public void readPdfFile(String pFilename){ …
3
votes
1 answer

Debugging JNI Code on my Nexus S

How can I debug JNI code on my device! I enable debugging and Im able to successfully set break points in Java and able to debug using Eclipse. But when it comes to my JNI C/C++ code I can't debug! Eclipse doesn't get no feedback on the breakpoints…
McBob
  • 219
  • 5
  • 13
3
votes
0 answers

Error: Junk character at end of line, first unrecognized character valued 0x7F

I am a newbie to Android NDK, I am using android-ndk-r5 to build the Gearoid source code. After several warning of the following type warning: null characters ignored the assembler terminates with the following error message: Error: junk at end of…
Ragunath Jawahar
  • 19,513
  • 22
  • 110
  • 155
2
votes
0 answers

Setting up Automatic NDK Builds in Eclipse do not work yet

i new to the ndk programming.And i wanna my eclipse in linux os can automatically build the the content of folder,jni into the folder,libs via ndk-build.And i follow the tutorial,http://mobilepearls.com/labs/ndk-builder-in-eclipse/to do so.For…
kaiwii ho
  • 1,367
  • 7
  • 21
  • 40
2
votes
1 answer

Including a prebuilt shared object file in an NDK project

I am working on including a shared object file onto the Android OS image through the NDK project. The android.mk file looks like this LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := Myaccessories LOCAL_SRC_FILES :=…
2
votes
2 answers

Getting the 'LOGE' was not declared in this scope error in NDK

I am getting these errors when i am trying to compile my sample native (cpp) code in my machine. I am trying to compile the native code with the help of the NDK from the cygwin. I am getting the below errors, i tried adding the LDFLAGS but still…
Suman
  • 4,221
  • 7
  • 44
  • 64
2
votes
3 answers

android external/stlport include in Android.mk build not successfull

I m trying to build an app with android-froyo source in which I am using skia and stl templates, I have included MY_INCLUDES=external/zlib external/jpeg external/freetype/include \ frameworks/base/core/jni/android/graphics …
mohit
  • 1,011
  • 2
  • 16
  • 26