Questions tagged [android-native-library]
134 questions
0
votes
0 answers
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 add texts to the Seekbar?
0
votes
0 answers
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, BpBinder, IBinder, AIBinder, IBinderInterface,…

Jigar Agrawal
- 119
- 2
- 3
0
votes
0 answers
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 FlutterView. But If I pass the FlutterSurfaceView(this,…

himanshu_942
- 29
- 7
0
votes
1 answer
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
I've tried looking for various other implementations, but…

avetharun
- 3
- 3
0
votes
2 answers
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 java.lang.System.loadLibrary and…

tir38
- 9,810
- 10
- 64
- 107
0
votes
1 answer
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....
03-07 09:53:19.541 242 242 I hwservicemanager:…

Rajeev
- 147
- 1
- 1
- 17
0
votes
0 answers
Android: How to include mlpack c++ library into android project?
I trying to include mlpack c++ library into my android project
but getting an error when using some function of mlpack like:
NeighborSearch nn(data);
Error:
> undefined reference to `mlpack::Log::Assert(bool,…

Monir Zzaman
- 459
- 4
- 7
0
votes
1 answer
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.hello:layout/lb_guidedstep_fragment: For input…

wilson
- 35
- 6
0
votes
0 answers
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
#include
#include
typedef void (*target_func)(JNIEnv* env, jobject obj, int x);
int main(int argc, char ** argv) {
…

op123d
- 3
- 1
0
votes
0 answers
Why do I receive "Error: cannot find symbol import com.wa.delxott.R"?
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 rebuild, but I am getting same error. I've lost…

Wasim Aftab
- 1
- 2
0
votes
0 answers
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");
}
The definition of JNI_onLoad and JNI_onUnLoad…

NightFuryLxD
- 847
- 5
- 15
0
votes
1 answer
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 installed. I'm able to build and debug native code.
I…

Navinpd
- 772
- 7
- 15
0
votes
0 answers
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 whenever I run it either on the emulator or on an…

WeSay Solutions
- 81
- 5
0
votes
1 answer
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 reproduce it). Although, Android Studio / logcat gives…

GAMELASTER
- 1,071
- 1
- 12
- 23
0
votes
1 answer
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. While I am building the project getting below…

Bajrang Hudda
- 3,028
- 1
- 36
- 63