Tag: android-ndk

How to configure Tesseract in Eclipse for Android development?

I have been working on android from 6 months. So I have basic idea about Android development. Now I want to develop an OCR Android app using Tesseract. For that I have downloaded android-ndk-r6b, tess-two from Tesseract, Cygwin for Windows and installed C/C++ developer in Eclipse. And I followed these two links: 1.http://www.itwizard.ro/interfacing-cc-libraries-via-jni-example-tesseract-163.html 2.http://gaut.am/making-an-ocr-android-app-using-tesseract/ but […]

Mixing android plugins from gradle and gradle-experimental

Is there any way or workarounds or just hints to make plugins from gradle and gradle-experimental working together? For example to mix those two versions: com.android.tools.build:gradle:1.3.1 com.android.tools.build:gradle-experimental:0.3.0-alpha4 I have an existing project which uses some external plugins (app/build.gradle): apply plugin: ‘com.android.model.application’ apply plugin: ‘com.android.databinding’ apply plugin: ‘com.jakewharton.hugo’ in my root build.gradle I have: com.android.tools.build:gradle-experimental:0.3.0-alpha4 Issues […]

Android SIP application using Linphone

I am working on SIP application and using Linphone Library i have a little confusion while setting up the library to run the project. Step 1: Firstly I Downloaded NDK on my Mac with the new Android SDK pkg. Then gaved the PATH of my NDK folder in ADT -> Preferences -> Android -> NDK […]

How to link any library in ndk application

From this tutorial. see i have one pre-built static library named as stackoverflow.a and it has stackoverflow.h now i want to use the function of that static library in ndk_demo.c // that tutorial has this file for that inside ndk_demo.c i have added #include ‘stackoverflow.h’ Edit inside `android-ndk-r7c` | apps | ndk_demo | —————– | […]

How to use openSSL Library in the ANDROID application

i am trying to embed the openssl library in my Android application using Android NDK but i don’t know how to use exactly that library and so please any one can tell me how to use that please send a source code for my reference……. Related : How to build OpenSSL on Android/Linux ?

java.lang.UnsatisfiedLinkError – NDK in android studio gradle?

Folder structure app —main —java —-jni —–Android.mk —–Application.mk —– hello-jni.c —res in build.gradle apply plugin: ‘com.android.application’ android { compileSdkVersion 21 buildToolsVersion “22.0.1” defaultConfig { applicationId “com.example.hellojni” minSdkVersion 17 targetSdkVersion 21 sourceSets.main { jni.srcDirs = [] jniLibs.srcDir ‘src/main/libs’ } ndk { moduleName “hello-jni” cFlags “-std=c++11 -fexceptions” ldLibs “log” stl “gnustl_shared” abiFilter “armeabi-v7a” } task nativeLibsToJar(type: Zip, […]

Integrating MuPDF as a library project (Android)

So I have built this project based on a pdf reader(MuPDF). I used ndk-build for that. The name of this project is ChoosePDFActivity. I know that it has been correctly built because I can see a .so file inside my libs/armrabi-v7a/THISISTHEFILE.so. My question is, how do i Correctly make this project a library project and […]

How to stream to ffserver from android

I need to stream from an android camera/ file to a remote ffserver which will broadcast my video. I can do this on the desktop in ubuntu by issuing a command like: ffmpeg -f video4linux2 -s 640×480 -r 25 -i /dev/video0 http://192.168.0.20:8090/cam1.ffm or stream a file like this: ffmpeg -i /home/kev/share/movie.mp4 http://192.168.0.20:8090/cam1.ffm So basically i […]

How to use GraphicBuffer in android ndk

I am asking this with reference to an answer for my question at How to improve opengl es display performance in android . I was trying to build the code which uses GraphicBuffer with ndk-r9d. but It is saying GraphicBuffer is not declared in this scope. The same comments for eglCreateImageKHR and glEGLImageTargetTexture2DOES. I have […]

Android video trimming via ffmpeg

I have downloaded video trimming code from github from this link. It’s working perfectly for the first time, but when I try to run it for the second time the code crashes without any exception then again when I try to run it for the 3rd time after the crash it works! Does any one […]

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