Questions tagged [android-native-library]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Is native library being built into incorrect folder? Android

I use Realm sdk , which internally uses the native lib librealm-jni.so. I am noticing some crashes at Google Play reports, indicating that the lib is not found for some architectures: Exception java....
htafoya's user avatar
  • 18.3k
0 votes
1 answer
73 views

Android app crashes on load library, cannot find entry point getThreadLocalsEv, how to fix? [example added]

My code is crashing on System.loadLibrary("hypoboleus"); with an error that it cannot find an entry point. I have created a so file and included it in the app/src/main/jniLibs/arm64-v8a/ ...
Martin Ellison's user avatar
0 votes
0 answers
23 views

How to execute programs of different languages in android app

I'm building an app where students can learn different programming languages like java, c++, JavaScript, markup languages like html, xml etc. I want to create a simple editor inside my app to run ...
samadfullstack's user avatar
0 votes
1 answer
24 views

Native Library working correctly for install-time module but doesn't work as expected for on-demand module

I'm trying to localize an app that uses Native C++. Most of the codes written in C++ and all strings/text was in certain build flag. E.g LANG_JP // For japanese I've created an on-demand dynamic ...
pleasebugmenot.mrg's user avatar
1 vote
1 answer
58 views

How to acquire Wake lock in Android native service in AAOS?

Is there a way to acquire wake lock in Android native service in Android automotive, I need to hold the device from not going to suspend to Ram mode until my service done with certain tasks. I tried ...
Smokingkills's user avatar
0 votes
1 answer
93 views

Native Android code executes even if I don't package libc++_shared.so

I have pre-built, third-party shared library libSNPE.so from Qualcomm that has a dependency on libc++_shared.so . Even if I don't copy the libc++_shared.so to the Android phone, my programs execute ...
Umar Karim's user avatar
0 votes
1 answer
24 views

Line Chart Using MPChartAandroid

How to display chart like below ? Only display XAxis lable XAxis lable is in string value with multiline show value only on first and last plotted value Please see the screen shot. enter image ...
Ganpat Kaliya's user avatar
1 vote
0 answers
24 views

One Plus Nord - MediaStore.EXTRA_DURATION_LIMIT - not working., Unable to set the time limit

MediaStore.EXTRA_DURATION_LIMIT not working val takePictureIntent = Intent(MediaStore.ACTION_VIDEO_CAPTURE) takePictureIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 30) takePictureIntent.addFlags(...
Francis.X's user avatar
0 votes
1 answer
103 views

Android app Crash OnActivityResult, Unable to read captured image

Unable to read captured image from "path /external_files/Android/data/com.test.testt/files/test_CAM_20230328_172047.jpg" **Existing code ** Intent intent = new Intent(MediaStore....
komal Mane's user avatar
0 votes
2 answers
106 views

Problem calling SendUnityMessage after Importing Unity project in Android Native Project

So we have an android native project, mostly in Kotlin. Separately we also have a small scene in Unity that we wanted to import. We've been able to export the Unity project as an Android project, ...
ObjectNameDisplay's user avatar
0 votes
0 answers
104 views

IDA: How to tell IDA to output bytes as code

I have a text trace of the code of the real work of the library, but IDA at the address where the code should be shows that there is data, calling the "convert to instruction" function gives ...
Keil Batrasov's user avatar
1 vote
1 answer
258 views

Dependencies between Android native modules (prefab) fail to build

Our Android application consists of 40-some Android Library Modules (ALMs), each of which also builds a C++ shared library with externalNativeBuild and CMake. So far we had the dependencies between ...
marczellm's user avatar
  • 1,224
0 votes
0 answers
45 views

About Kotlin Multiplatform AndroidNative who can help me. I searched kotlinlang, stackoverflow, google, but there was no specific way to use it

I want to implement the library generated by Android calling AndroidNativeArm64 in the Kotlin Mulitplatform project. I've gone through almost all the documentation at kotlinlang.org and still don't ...
dxy's user avatar
  • 86
2 votes
0 answers
48 views

Android Accessibility

Android Accessibility - How can I customize Accessibility talk back while using Native calendar component? Even Though I tried setting Accessibility manually by triggering calendar ID in both XML and ...
Praveen Kumar's user avatar
0 votes
0 answers
61 views

Easypermission, the permission native dialog is coming by itself, I didn't execute any function

The easypermission is implemented in my app. The behaviour of showing the permission native dialog is on click. In Android 11 and greater the flow is working as it's implemented. But in Android 10 or ...
Fahad Ammar's user avatar
0 votes
0 answers
63 views

Publish an app with native executables in Android play store

I have been working on a project which has legacy code ( more than 2 decades old), so I am trying to deploy my project as an android app with a target API level of 29+. But I could see privacy changes ...
user1228352's user avatar
0 votes
0 answers
110 views

Easy Permissions Android - onPermissionGranted and Denied executes automaitcally

These 2 callback methods onPermissionsGranted onPermissionsDenied Automatically exeucted in the MainActivity without any permission dialog apperaing or any such of activity. These 2 are executed ...
Fahad Ammar's user avatar
0 votes
0 answers
42 views

I tried to run the App, But Gradle is throwing this error

` FAILURE: Build failed with an exception. Where: Build file '/Users/theroushan/Documents/NextSchool/android/app/build.gradle' line: 32 What went wrong: A problem occurred evaluating project ':app'. ...
anon00978's user avatar
1 vote
0 answers
125 views

Android Studio no Console output with Dual debug type?

Recently started using C++ in a Java Android app with CMake and Gradle on Windows (based on https://developer.android.com/studio/projects/gradle-external-native-builds). It works great, but now Java ...
cj-'s user avatar
  • 167
0 votes
0 answers
31 views

How to get frame counts in Android framework native level

I am a rookie to the android framework native development so I was wondering if it is possibile to calculate the frame rate periodically like every two second in android native? If it is possible, how ...
Granth's user avatar
  • 1
0 votes
0 answers
180 views

copying the file into data/vendor/gnss folder at build time creating problem at boot time

I am trying to copy a file from AOSP vendor/*/hardware/interfaces/gnss/file.txt to /data/vendor/gnss/file.txt using PRODUCT_COPY_FILES in Android.mk file. At build there is no problem and even i can ...
Rajeev's user avatar
  • 147
0 votes
0 answers
22 views

how to develop the customized layout in Android UI?

I would like to develop a layout like the following: enter image description here Is there any suggestion for this tracking bar? I tried "Seekbar" in Android but it is not helpful. How to ...
Prakash VN's user avatar
0 votes
0 answers
70 views

Android NDK Binder Naming Conventions

I am a newbie to this Android Native code development. I have some questions to get my head wrapped around some of the terms used in Android Native libraries. What is the meaning of ABpBinder, ...
Jigar Agrawal's user avatar
1 vote
0 answers
138 views

Change Zlib version in android project

Recently I found that archive-patcher library isn't working in android 12, and then I found that android 12 used the new version of Zlib that is changed a little and the problem is for that. Is it ...
hamid Mahmoodi's user avatar
0 votes
0 answers
116 views

Don't understand how to make FlutterView transparent and control z-index both at same the time

Currently, I am learning to integrate Flutter into native android and understanding FlutterView. I have come to the point where I want transparency and also want to control the z-index of the ...
himanshu_942's user avatar
3 votes
0 answers
488 views

Report in Google Play Console with crash in libGLESv2_mtk.so

I see crash report with native stack like this in the Google Play Console: **#00 pc 0x0000000000142eb0 /vendor/lib/egl/libGLESv2_mtk.so #00 pc 0x000000000008560f /vendor/lib/egl/libGLESv2_enter ...
PUBG MOBILE's user avatar
1 vote
1 answer
275 views

Gradle plugin for Android that generates native library

I'm trying to create a gradle plugin for Android that generates code. I want the gradle plugin to generate code that will be compiled to a native library at application build time. Generating the code ...
timemanx's user avatar
  • 4,493
0 votes
1 answer
152 views

Unable to get a jstring from R.string.* via JNI in a native C application

I'm working on a native c/c++ app, that uses string resources via the strings.xml file. Attempting to use AAssetManager to load the "strings.xml" file, has no effect. Returns the same error ...
avetharun's user avatar
1 vote
0 answers
80 views

apkanalizer - What can increase the raw file size of the native libs?

I have a project that used to weight around 140MB. Then, something changed and new version of the app is increasing by 100MB the apk size, even when the download size remains mostly the same. We did ...
htafoya's user avatar
  • 18.3k
0 votes
2 answers
528 views

How can I load private native libraries from another app

I have two apps A and B. App A uses DexClassLoader to load a custom view class from app B. This works fine. However if the custom view in app B loads private native libraries bundled with apk B via ...
tir38's user avatar
  • 9,830
0 votes
1 answer
1k views

Android Hal is not registered at runtime in Android R(11)

I added my hal interface in manifest.xml, vendor_compatibilityMatrix.xml, and also in device.mk. And also I have created hal.rc file as well for my hal. but at boot time i am getting below error.... ...
Rajeev's user avatar
  • 147
1 vote
0 answers
86 views

Can i use .so file from Apk and use in a python / Java Script

I have an apk. one .so file is being used in this apk. There is a function in the .so file. APK is invoking that function by passing 4 inputs as a parameter and getting output. Now I have to call that ...
Nirbhay Jain's user avatar
0 votes
0 answers
23 views

Android: How to include mlpack c++ library into android project? [duplicate]

I trying to include mlpack c++ library into my android project but getting an error when using some function of mlpack like: NeighborSearch<NearestNeighborSort, ManhattanDistance> nn(data); ...
Monir Zzaman's user avatar
0 votes
1 answer
258 views

ReactNative: Exception in native GuidedStepSupportFragment call (Android LeanBack)

When I try to render native guided step fragment in react native, I am getting the below error. ReactNative: Exception in native call android.view.InflateException: Binary XML file line #32 in com....
wilson's user avatar
  • 35
0 votes
0 answers
87 views

Load android native libraries (JNI) in a native c program

I'm gonna write a c program that loads a native android library (.so) this is my code: #include <stdio.h> #include <dlfcn.h> #include <stdlib.h> typedef void (*target_func)(JNIEnv* ...
op123d's user avatar
  • 3
2 votes
0 answers
228 views

How to deal with lib/arm/<.so file> file or folder missing?

I'm facing a challenge with my app from playstore. My app has the .so files which are in jniLibs folder for different ABIs. My app works well during testing but when I download from play store, logs ...
Elian's user avatar
  • 21
0 votes
0 answers
24 views

Why do I receive "Error: cannot find symbol import com.wa.delxott.R"? [duplicate]

Error: cannot find symbol import com.wa.delxott.R Symbol: class R Location: package com.wa.delxott After I change package name, during app resking. I try to check clear and ...
Wasim Aftab's user avatar
1 vote
0 answers
809 views

JNI_OnUnload never called?

I'm trying to understand the lifecycle stages of an Android app with a native lib. The native library is loaded like this in the MainActivity: static { System.loadLibrary("lifecycleevents&...
NightFuryLxD's user avatar
1 vote
0 answers
129 views

Does getMinBufferSize always return the same value for AudioTrack and AudioRecord?

In Android, when using the classes AudioTrack, and AudioRecord, you can find the minimum buffer size (for a given sample rate, channel config, and audio format) for the user's device with the static ...
Nerdy Bunz's user avatar
  • 6,122
1 vote
2 answers
733 views

Attribute value must be constant in retrofit Header

I I tried to call the API key that I created with nativeLib, but when it is called in the retrofit header it can't be executed and there is a message "Attribute value must be constant" ...
Robby Ramadhan's user avatar
0 votes
1 answer
359 views

Android studio native code navigation is not working

When I click on usage of any function it shows me a dialog like below: This makes my code navigation in native very slow. I'm using Android Studio Arctic Fox. I have NDK(SideBySide) and CMAKE ...
Navinpd's user avatar
  • 772
2 votes
0 answers
255 views

Minimal Android app with Google Play Services SDK (Passes API) not work

I have bare Android application created in Android Studio to which I added this Google Services API dependency: implementation 'com.google.android.gms:play-services-pay:16.0.0' Now I am trying to ...
Baterka's user avatar
  • 3,135
0 votes
0 answers
835 views

Flutter app stuck on black screen after integrating native android sdk

I have a Flutter app on version 2.2.3 into which I recently integrated a native SDK using the Platform channel method. For some reason after doing this, my Flutter app started showing a black screen ...
WeSay Solutions's user avatar
0 votes
1 answer
1k views

Android - Debugging native crashes

I have application which uses native library, but also threading and various Bluetooth features. It mostly works fine, but at some unknown situation, the application crashes (it's really hard to ...
GAMELASTER's user avatar
  • 1,071
1 vote
1 answer
272 views

Is it possible to programatically preload a shared library?

Im building a project that needs to modify the behavior of some bionic methods (e.g getaddrinfo, __android_print). I've been able to create the hooked library both using a standalone compiler or ...
Gustavo Lagos's user avatar
0 votes
1 answer
1k views

While moving project from system to product partition how to resolve missing variant error?

I am trying to move my APKs files and dependent libraries under product partition by setting product_specific: true in Android.bp files. My libraries depend on libandroid_runtime and libnativehelper. ...
Bajrang Hudda's user avatar
1 vote
1 answer
391 views

Reusable animations within Android navigation library nav graph

Wondering if there is a way to create a reusable set of the animations for the nav graph. Something like a style that contains all of the animation properties rather than repeating the same ones over ...
Tyler Turnbull's user avatar
0 votes
1 answer
137 views

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 ...
MRDRAG's user avatar
  • 65
0 votes
0 answers
99 views

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 ...
shashank singh bisht's user avatar
0 votes
1 answer
28 views

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
user avatar