android-ndk-r4

Android NDK r4 san-angeles problem

Hi All, I'm starting to learn the android NDK and I've instantly come up against a problem. I'e built the tool chain (which took a LOT longer than I was expecting!!) and I've compiled the C++ code with no problems and now I'm trying to build the java code. Instantly I come up against a problem. There is a file "main.xml" <?xml versi...

Getting hardware floating point with android NDK

Hi All, 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 := sanangeles APP_PROJECT_PATH := $(call my-dir)/../ APP_OPTIM := release APP_ABI ...

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

Hi, 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 even if the java code is unchanged but something changed on the c++ side. Infact if ...

JNI sources in the APK

Hi all, 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, then clean and rebuild, they're there again. What going on, please? I have no intent...

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 *SSID, size_t SSIDlen, unsigned int iterationCount, char *aeskey, size_t ke...

ndk-build command is not building shared libraries

i am trying to imlement the "hello-jni" sample application in android ndk. when i execute the ndk-build command, the command prompt does not show anything, though as per the instructions given on the official android website, this step should build the shared libraries. i also checked out my hello-jni folder, but no "lib" folder had b...

android library linking

Hello, 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 /home/jpprade/dev/tesseract3/jni/Android.mk for module ocr Android NDK: cc...

Problems running 2 sample NDK applications

I have installed the android tool chain within eclipse and am working through all the sample apps under the NDK. The apps all build fine with ndk-build and were imported into eclipse without issue. Most of them run just fine on the emulator but 2 have problems: On the emulator: hello-neon displays: Not an ARMv7 CPU san-angeles(hello-g...

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 slow... I run the profiler and its really a night and day difference: on some phone the jni fun...

System.loadLibrary force closing Android

How do you stop this force close?? Im trying to load a c++ ndk library called helloCpp but using the following code. My program force closes as soon as it opens. I have checked that the libhelloCpp.so file is in the lib folder and it compiled with no errors. //helloCpp.java package com.knucklegames.helloCpp; import android.app.Activity...