Tag: android-ndk

Thread getting stuck on BlockingQueue.take for no apparent reason

I’ve stumbled upon a really weird problem that I can’t make any sense of whatsoever. A little bit of backstory first: I’m trying to run JavaScriptCore and using it as a scripting language of sorts for an Android app. The trouble is, stack size on the main thread is quite limited on older Android versions […]

Qt5 QGeoPositionInfoSource::createDefaultSource() crashes on Android 5.0

I’m developing a Qt5 application for Android (with CMake!) and currently I’m trying to read location data using Qt’s QGeoPositionInfoSource. All of my application is doing fine so far but when I run auto source = QGeoPositionInfoSource::createDefaultSource(this); The application crashes immediately and logcat gives me: I/__log_qt( 422): (II) dpw_qt5: <last output from my app> F/libc […]

How to access Android Lollipop DocumentFile files via NDK?

How is it possible to access files which are generated from a DocumentFile in Android KitKat/Lollipop in Native JNI Code, so I can use fopen, fread, etc. I’m particular asking this to access the external SD-Card files via the NDK.

Android Camera Preview Frame Timestamp

Is there a way to get a timestamp of when the Android Camera Preview Frame was captured? no Camera method is returning a timestamp you can not access Camera from native code buffer size is not static (depends on the min preview size acquired from the camera – when and if the method is working) […]

how to compile and link rust code into an android apk packed application

I’m trying to add Rust code to an android NDK sample (native-activity); Whenever I link Rust code (compiled as a .a) into the .so , it fails to run. I went on information from here to get an android aware rust compiler and ‘standalone toolchain’ https://github.com/mozilla/rust/wiki/Doc-building-for-android Someone was suggesting on the Rust IRC channel that […]

speex support in android

Can anybody help me on how to use speex or jspeex in android? I have searched a lot but could not able to find anywhere.There are many issues regarding this in code.google.com/android but none have answered it. Here also this question did not got a good response as my another question regarding this is Decoding […]

Gradle Android Build System NDK issues

I’ll be the first to admit that I’m not terribly expert with Gradle and the new Android build system but, unfortunately, I had to move over to it (from ant) because of issue 21479 (https://code.google.com/p/android/issues/detail?id=21479) and the comment “This will not be fixed. We are focusing on finishing the Gradle-based build system which will replace […]

Errors running builder 'CDT Builder' when trying to build OpenCV for android samples

Hello guys I’m trying to learn about openCV in android I’ve already following the instruction given here but when I’m trying to compile I’m only getting 01:50:14 ** Auto Build of configuration Default for project org.opencv.samples.fd.FdActivity ** “C:\Android\android-ndk-r8\ndk-build.cmd” Install: libdetection_based_tracker.so => libs/armeabi-v7a/libdetection_based_tracker.so 01:50:14 Build Finished (took 184ms) in the console and I’m also get an […]

Android NDK incremental build

I’m currently working on a large Android app using a massive amount of C++ code. It compiles and runs, so far so good. Unfortunately, every time I modify something in the structure of my native source (add/delete/rename/move a file), which happens pretty often, ndk-build rebuilds the whole source, even the untouched files. Does anyone know […]

Copy Database from assets folder in unrooted device

I am trying to copy DB from assets folder to device. This code is working fine on Emulator and rooted Device. I just want to know is it create any problem on unrooted device or it will work same. private void StoreDatabase() { File DbFile = new File( “data/data/packagename/DBname.sqlite”); if (DbFile.exists()) { System.out.println(“file already exist […]

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