Tag: android-ndk

How can I use Tesseract in Android?

I have searched on the net for a couple of hours. I got many answers saying we need to use NDK, etc. for “Tesseract” for WINDOWS. But I didn’t get any step-by-step/proper explanation of what should be done when NDK is installed. How to get the .so files? I have finished installing NDK and Cygwin. […]

Unable to find header files – Android NDK

i’m wrapping a native API to Android by NDK. But when building it don’t find the header files. I have the following structure. project/jni Android.mk LOCAL_PATH := $(call my-dir) include $(call all-subdir-makefiles) LOCAL_PATH :=/home/marcos/dev/workspace/rmsdk.native.wraper/jni include $(CLEAR_VARS) LOCAL_LDLIBS := -llog LOCAL_MODULE := ndk1 LOCAL_SRC_FILES := native.c DelegateDRMProcessorClient.cpp LOCAL_STATIC_LIBRARY := adept cryptopenssl dp expat fonts hobbes jpeg […]

Android NDK: load_library: cannot locate srand

I have an android project where I use native code to do stuff with SIP (using libosip2 and libeXosip2). My native code is compiled together with the libraries’ sources into one module. The code compiles just fine and the generated library has all the symbols I expect it to have, but when I try to […]

Calling into a saved java object via JNI from a different thread

I have a java object which calls into a C++ shared object via JNI. In C++, I am saving a reference to the JNIEnv and jObject. JavaVM * jvm; JNIEnv * myEnv; jobject myobj; JNIEXPORT void JNICALL Java_org_api_init (JNIEnv *env, jobject jObj) { myEnv = env; myobj = jObj; } I also have a GLSurface […]

NDK is not configured issue in android studio

My Application is built successfully on Eclipse but fails to Build on android studio. It returns the error code Ndk is not Configured. Then I’ve added ndk path to build.gradle then its showing the following error: Information:Gradle tasks [:nano:assembleDebug] WARNING [Project: :nano] Current NDK support is deprecated. Alternative will be provided in the future. :nano:preBuild […]

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file

I get the following error while trying to compile an Android NDK project: ndk-build Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: /home/lambergar/work/APIExample/jni/Android.mk /home/lambergar/android/ndk/android-ndk-r5c/build/core/add-application.mk:116: *** Android NDK: Aborting… . Stop. The weird thing is, that the ‘unknown file’ (Android.mk) exists under the path reported as invalid.

Android:how to find the android version name programmatically?

i write code for finding the android version like this String version=Build.VERSION.RELEASE; by using this code i am get the version number but i want version name. how to get the version name???/

Is it possible to run a native arm binary on a non-rooted android phone?

Well, I’ve been diving in the murky waters of low-level Android programming (native C/C++ using the CodeSourcery toolchain). I tried out the executable on an emulator and it worked. I’d like to try it out on a real device. So I plugged in my nexus and pushed the files on to the filesystem. Then I […]

Javah Error android.app.Activity not found

I’m trying to create a .h header file for a simple NDK project. Using cygwin I browse to myprojectDIR\jni directory, then execute this command: javah -o com_myproject_MyActivity.h -classpath myprojectDIR\bin\classes com.myproject.MyActivity then this error message appears: Error: cannot access android.app.Activity class file for android.app.Activity not found I have a native method inside MyActivity class, so I […]

How to set NDK Build path in OSX for Android studio

I had set the ANDROID_NDK_HOME as /Users/Shajilshocker/Documents/Android/NDK/android-ndk-r10b using a mac osx application called Environment Variables. I had confirmed that it set the path correctly in Terminal echo $ANDROID_NDK_HOME But when I run a shell file in a Android Studio project which invokes ndk-build I get the following error ndk-build: command not found How to make […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.