Questions tagged [android-native-library]

134 questions
0
votes
0 answers

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

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/ folder as libhypoboleus.so. The Java runtime is calling…
Martin Ellison
  • 1,043
  • 1
  • 13
  • 25
0
votes
0 answers

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 programs to show output of those programs. I'll be…
0
votes
1 answer

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 module to my project namely "module_jp". The…
0
votes
1 answer

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 fine. Trying the above I was expecting that I will…
0
votes
1 answer

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 description here Please help me if anyone have idea…
0
votes
1 answer

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.ACTION_IMAGE_CAPTURE); …
0
votes
2 answers

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, build it, and then import the .aar file into our…
0
votes
0 answers

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 the wrong code, how to make IDA show the same code as in…
0
votes
0 answers

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 know how to do it. Also searching on google and…
dxy
  • 86
  • 2
0
votes
0 answers

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 less, when the user comes to home screen after…
0
votes
0 answers

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 introduced after Android 10 Android privacy…
0
votes
0 answers

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 when the user allows or denies the permission. But…
0
votes
0 answers

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'. No signature of method:…
anon00978
  • 1
  • 1
  • 2
0
votes
0 answers

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 should I do that? I was think that I may need to…
0
votes
0 answers

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 see in out folder the file is copied successfully…
1 2 3
8 9