Questions tagged [android-native-library]
134 questions
0
votes
1 answer
Android NDK - execute .so returning 0 but not working
How to execute a .so file if process = new ProcessBuilder(new String[]{"su", "-c", "exec " + mylib.so).start() is returning 0 without any sign of execution happening.
I have compiled a .c file using cmake and storing it as a library (.so). However,…

MRDRAG
- 65
- 8
0
votes
0 answers
Native Android java methods not finding any reference
I have Two Modules first have Jni Android.MK file and the second have CMakeList.txt
the first module has dependencies of the second module.
Now when I call any native java method from First Module it finding that method in the second module and says…

shashank singh bisht
- 83
- 1
- 10
0
votes
1 answer
Get option of multiple activities from phone launcher?
hi see the picture below
when long press on chrome app icon then I get a quick option to go incognito and open new tab
so how can I do this with my own app
user15260712
0
votes
0 answers
Is it possible to start a native executable from android native layer?
I have two "test" native executables and I'm trying to execute/start them as from native callback method.
This is how "test" applications look:
int main(int argc, char** argv){
__android_log_write(ANDROID_LOG_ERROR, "OHM", "INDEPENDENT PROCESS…
0
votes
1 answer
Is there a way to use the Platstore's Dynamic Delivery to download the native libs (.so) at runtime after install?
As the question says, can I use the Dynamic delivery feature to deliver the .so files that my app uses after installation? My .so files are 15 MB in size and this causes the app's size to increase two-fold.
If not , is there any other way I can…

vaishak bg
- 83
- 1
- 7
0
votes
1 answer
Is gearsandcogs extension still working in lastest AIR versions 32.0+?
I have a project in AS3 using package com.gearsandcogs.air.extensions.
When a try to compile a Native Android APK, shows this error:
"An implementation for native extension 'com.gearsandcogs.air.extensions.PackageManager' required by the application…
0
votes
1 answer
Is there a way to bypass the android runtime request permissions with NDK?
I just would like to know if there is a way to use the camera and storage without request it in runtime and without to set targetSdkVersion to 21, thanks in advance and sorry if this question sounds dumb in some manner.
Edit 1: I don't necessarily…

omensight
- 90
- 1
- 9
0
votes
1 answer
Android with native library - interface a CDC usb device - can't use fd in native library
I'am trying to make a android tablet communicate with a USB device (STM32 Nucleo).
I developped a sketch available on github :
the mobile application is developped with Xamarin and VS Studio. It acts as usb host
the STM32 Nucleo application is…

Selso Liberado
- 129
- 6
0
votes
1 answer
Debugging C++/Native code in Android Studio doesn't work with older Android SDK API version
General problem
I have an Android Native application that targets two different API versions: 23 (Marshmallow) and 28 (Pie). For the API 28, I have no problem debugging a hello world application when it enters the C++ code: the debugger attaches…

Neph
- 61
- 1
- 5
0
votes
2 answers
Extract native libs from prebuilt apk file using Android.mk
I have an APK file with the bundled native libs. When I install them using adb the libraries are correctly created at /lib/, But I have to integrate my apk to the build system along with the Android.mk file. What I need to add in…

Vimalakshi Adiga
- 19
- 1
- 4
0
votes
0 answers
Porting C++ libraries to android from C++ source on windows
I have written a C++ library and its cmake. I'm trying to get that library ported on Android so that I can use the library there.
I'm trying to generate .so files so that I can link it in JNI.
%Path to android sdk cmake%\cmake -G Ninja . ^
-GAndroid…

pr0py_s
- 171
- 9
0
votes
2 answers
Remote binary shared nativeLibrary not extracting
So I'm providing binaries as a remote dependency packaged as an aar. The android library has the libMyLibrary.so files in the src/main/jniLibs// directory, so when built and deployed they're in the aar's jni dir. The only other thing the…

05nelsonm
- 311
- 3
- 5
0
votes
1 answer
_itoa_s Function show error on Android studio native c++
My Code:
for (int i = 0, k = 0; i < final_numbers.size(); i++) {
for (int j = 0; j < final_numbers[i].second.size(); j++) {
char add_c[6];
_itoa_s(final_numbers[i].second[j], add_c, 6, 16);
qr_code_string.append(add_c);
…

Pratik Siddhapura
- 29
- 1
- 6
0
votes
0 answers
Report in Google Play Console with crash in libminikin.so
I have an app in Google Play store and every couple of weeks, I see crash report with native stack like this in the Google Play Console:
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> sk.mimac.slideshow…

Milan Fabian
- 154
- 4
- 13
0
votes
0 answers
Android Java with Native C undefined reference to `__android_log_print'
I know this question has been asked a million times, however i have tried all methods listed all types of configurations and can not get this to work. I really need to get logging info out of my C code. I will share relevant files if anyone can help…

docker dev
- 91
- 3
- 10