9,803 questions
-3
votes
0
answers
46
views
How to use Sony Camera Remote SDK in Android? [duplicate]
I am working on an Android project using the latest Sony camera remote SDK to control Sony camera, but I don't know how to use it and cannot find an example using Java in Android Studio. Any one can ...
-7
votes
0
answers
90
views
WPF + C/C++ PInvoke - Expected create Java VM exception crashing whole program [closed]
I'm working on a WPF software, using .NET 9 and a custom C/C++ DLL, which is responsible for creating a Java virtual machine, using JDK 17 with JNI version 1.8 or 10.
I already got that working on a ...
4
votes
2
answers
195
views
How to load native libraries with a long path?
My Java application is installed to another application's "test area", resulting in longer absolute file paths than usual.
I can load native libraries from a short file path:
System.load(&...
5
votes
1
answer
65
views
Lookup for a constant from a native library
I'm writing a demo Java app that interacts with libpq. For this, I'm using java.lang.foreing package. My problem is, I can easily pick up functions but not integer enum constants:
System.load("...
0
votes
0
answers
43
views
Qt 6 Android: Camera intent opens but image is not saved to device when using FileProvider
I am developing an Android application using Qt 6 (C++) and trying to open the system camera and save the captured image to device storage.
The camera app opens correctly, the photo is taken, but the ...
0
votes
0
answers
111
views
SIGABRT in libfbjni.so: facebook::jni::JNativeRunnable::run() crash on arm64-v8a (React Native)
Iâm seeing a native crash (SIGABRT) on arm64-v8a devices in a React Native Android app on Android 15 and 16. The crash originates from libfbjni.so while executing facebook::jni::JNativeRunnable::run()....
0
votes
0
answers
64
views
React Native Android: BLE audio packets received but no continuous live sound using AudioTrack + JNI (.so SDK)
I am building a React Native (Android) application that connects to a Bluetooth LE fetal doppler device.
The BLE connection works correctly and I receive live packets (0x71 command) that contain audio ...
0
votes
0
answers
76
views
Portaudio is recording a weird distorted waveform when recording jack devices and firefox
I am not sure why this is happening so I am coming here to look for any sort of help I can get. Basically when recording any jack device such as firefox in my app it comes out as distorted. But it ...
3
votes
0
answers
151
views
Memory leak in JNI with AttachCurrentThread() and DetachCurrentThread()
I have a Java application that calls a native function. That native function contains a loop, and in each iteration it launches 10 threads and waits for them to complete. Each thread performs a number ...
6
votes
0
answers
465
views
When should I use name resolution vs. RegisterNatives in JNI?
In System.c, the JVM function corresponding to Javaâs System.currentTimeMillis() is registered using RegisterNatives.
In contrast, System.identityHashCode(Object) calls a JVM function directly based ...
0
votes
1
answer
75
views
AWS Kinesis Video Streams Producer JNI times out (StatusCode: 0xf) in Ubuntu container running gRPC service; REST container works
gRPC service consistently fails with KVS Producer JNI âproducer stream creation time out StatusCode: 0xfâ about ~15s after âCreating Kinesis Video streamâ.
REST service (same repo, same JNI .so, same ...
3
votes
1
answer
133
views
What is a .so file in Java projects, and how can I use an old JAR that depends on .so files in Spring Boot?
I have an old Java JAR file that depends on .so files (shared object libraries).
I understand .so files are native libraries (written in C/C++), and the JAR uses JNI (Java Native Interface) or JNA to ...
0
votes
0
answers
79
views
Link third party C library through the JNI
I'm trying to add the wasmtime c-api library to my app. But I'm getting the following error at runtime:
java.lang.UnsatisfiedLinkError: dlopen failed: library "/Users/tufekoi/Repos/...
0
votes
0
answers
22
views
LOCAL_MODULE_FILENAME must not contain a file extension (Implementing GStreamer in Andriod Studio Project)
I am trying to integrate GStreamer via JNI into an existing Android Studio project.
My Android.mk file looks like this:
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := rtsp-...
0
votes
0
answers
94
views
How to get Cronet Android headers to use with cronet.so in JNI (C++)?
I'm trying to use Cronet on Android directly from my JNI / C++ layer, not through the Java API.
I already have the cronet.so (from Play Services / build output).
What I'm missing are the headers (like ...