Skip to content Skip to sidebar Skip to footer
Showing posts with the label Java Native Interface

Android Ndk App Failed To Load Library

My native library code: #include #include jstring Java_com_mindtherobot_samples_ndkfoo_NdkFooAct… Read more Android Ndk App Failed To Load Library

Access To Raw Data In Argb_8888 Android Bitmap

I am trying to access the raw data of a Bitmap in ARGB_8888 format on Android, using the copyPixels… Read more Access To Raw Data In Argb_8888 Android Bitmap

Android, Opengl Lag In Jni When Touching Screen

I am currently testing out all the features that a need in my game on the Android platform. I have … Read more Android, Opengl Lag In Jni When Touching Screen

Callintmethod Result -1 - Android Jni

I would like to use the ANDROID SharedPreferences from C. For easier usage, I've a class and so… Read more Callintmethod Result -1 - Android Jni

How Do I Call C/c++ Code From Android Using Jna?

I'm trying to integrate this specific library to my Android project, and the library is written… Read more How Do I Call C/c++ Code From Android Using Jna?

Jni: Can Not Get Array Length

I faced with the next problem: I can not do anything with byte[] (jbyteArray) in C code. All functi… Read more Jni: Can Not Get Array Length

Cross Compiling Ghostscript For Android, What Host Should I Use?

Hi Guys I am using this tutorial to build ghostscript-9.19 to be able to use in my android applicat… Read more Cross Compiling Ghostscript For Android, What Host Should I Use?

Is It Safe To Cast Jlong To Long?

I'm developing a native plugin for Android with JNI in C++. I want to print out a jlong value, … Read more Is It Safe To Cast Jlong To Long?

Android - Javah Doesn't Find My Class

I am having troubles generating the C header file for JNI using javah. Here's the script I use… Read more Android - Javah Doesn't Find My Class

Is There Any Ble Api In Ndk

Can we use Ble hardware(Bluetooth low energy) direct from Ndk without any java interface. I am new … Read more Is There Any Ble Api In Ndk

How To Create Native C++ Library On Android?

I need to write a dynamic link library in C++ that is used by Java on Android. As I get, it should … Read more How To Create Native C++ Library On Android?

How To Get App Package Name Or Applicationid Using Jni Android

For the protection issue of the shared library I will try to get package name using JNI but it will… Read more How To Get App Package Name Or Applicationid Using Jni Android

Undefined Modules When Switching To A Newer Version Of Android Ndk

I'm attempting to upgrade from ndk-r11c to ndk-r14. When I run r14, I get an error Android ND… Read more Undefined Modules When Switching To A Newer Version Of Android Ndk

Tutorials On Opencv On Android Phones

I would appreciate if anyone could show me where I can get good tutorials or documentations for dev… Read more Tutorials On Opencv On Android Phones

Android - Jni Newobject() Does Not Save Values When Passing It To Java

I am using native code to create an object which I then pass as an argument to a method I call. Not… Read more Android - Jni Newobject() Does Not Save Values When Passing It To Java

Nativeactivity Sample : Error Unknown Host 'jcenter.bintray.com' By Using Gradle Experimental Plugin

I tried building the nativeActivity code from the samples in Android Studio 1.5.1 but I am getting … Read more Nativeactivity Sample : Error Unknown Host 'jcenter.bintray.com' By Using Gradle Experimental Plugin

Call Java Function From C++ Method

I am facing trouble calling a Java function from C++ method. The following is what I am doing My ja… Read more Call Java Function From C++ Method

Get Java Array From C++ Via Jni

So, I want to obtain resultNative from c++ but resultNative is in Java. can anybody please show me… Read more Get Java Array From C++ Via Jni

How To Include Prebuilt Shared Libraries In Apk With Eclipse

I have a shared library libfoo.so and need to use it in my android app. My first try was to have in… Read more How To Include Prebuilt Shared Libraries In Apk With Eclipse

How To Use Java With Ndk Android?

I am assuming that using the OpenCV code here: http://github.com/billmccord/OpenCV-Android#readme … Read more How To Use Java With Ndk Android?