Tag: android-ndk

How to play multiple video files simultaneously in one layout side by side in different view in Android

In Android, I created a layout with three surface view side by side, and I want to play one video file with different media player simultaneously. But one problem I faced that none of three can play that video simultaneously. One or two of them getting stopped the display. If I used video view instead […]

Color overlay in android NDK

I want to implement the Hue/color/saturation color overlays. I saw the macros: #define ColorBlend_Saturation(T,A,B) ColorBlend_Hls(T,A,B,HueA,LuminationA,SaturationB) I am trying to reproduce it in Adobe Photoshop with colors #332244 and #557711 to get the result color – #431076. However, after applying these macros I get color – #320C59 as the result. question 1: how can I reproduce […]

How to build boost for android as shared library with c++11 support

I am trying to build boost_1.60.0 (as shared library) for android with c++11 support. I am using the latest ndk (currently android-ndk-r10e). The build host is Windows-10. This is for a non-opensource project. So as far as I understand I cannot use gnustl_shared, and I need to use c++_shared as the android c++ runtime. my […]

Detailed explanation for profile from “adb shell dumpsys meminfo my-app-name”?

Can anyone give me a detailed explanation about the profile gotten by adb shell dumpsys meminfo my-app-name? The result is just as below as it mentioned in How do I discover memory usage of my application in Android?: ** MEMINFO in pid 890 [process-name] ** native dalvik other total size: 10940 7047 N/A 17987 allocated: […]

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 […]

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