Questions tagged [android-binder]

Android's lightweight remote procedure call mechanism designed for high performance when performing in-process and cross-process calls.

While the term "binder" is somewhat generic, its most popular namesake is the Android-specific interprocess communication mechanism and remote method invocation system. It forms the basis for many of Android's core services.

The official documentation is here, and there is a collection of in-depth information at this wiki.

244 questions
0
votes
0 answers

Is there callback received based on periodic subscription or only on change in subscribe() interface in android VHAL?

In Android VHAL, whether the interface subscribe(IVehicleCallback callback, vec options) provides callback to system service only when there is a change or based on subscription frequency if the VehiclePropertyChangeMode CONTINUOUS? Reference link -…
0
votes
0 answers

Android: Possible to kill a remote callback?

I am using the class RemoteCallbackList in Android, but when I am calling the callback in the remote process, the callback hangs, and then so do my calling thread. Now, is it possible to "kill" the callback and free my process (from another thread…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
0
votes
1 answer

Android Socket Programming Using Binder Over Ethernet

I've been trying to find examples of people creating a socket between two android devices through the use of a binder (service) over an ethernet connection. I can't really seem to find any examples or really any information through Android Open…
0
votes
1 answer

BigDecimalRange validator is not working in vaadin 8 (Binder)

BigDecimalRange validator is not working in vaadin version 8.4.3 we tried to change to the latest version of vaadin 8 but the problem persist . Error shows withValidator like renaming the file ,What will be the problem and how can I fix this,Iam…
Archana
  • 1
  • 2
0
votes
0 answers

With a bound service, will onUnbind() be called along with onDestroy() if system decides to kill the service?

If a service is deemed unimportant, it might be killed by the system. I am aware that onDestroy() is not guaranteed to be called when the process is killed too but in situations where the calls go through (like if the service is killed while process…
0
votes
1 answer

onBind and Service connect?

There seems to be a small delay after I bind to a remote service. The onServiceConnection works fine. The binding work fine. There is just a delay problem I think. For example in the onCreate() method of my activity if for instance say: Note…
jjNford
  • 5,170
  • 7
  • 40
  • 64
0
votes
0 answers

Will frequent invocation of AIDL interface lead to continuous growth of native memory in Android?

holding references to Remote objects and using them in loops. And then found that native HEAP continued to grow I thought the system would auto gc, but it didn't example: fun test() { remote.call(object: ICallback.Stub { override…
May
  • 1
0
votes
0 answers

Native binder callback is hanging

I am working on AOSP code base with NXP EVK. I have a binder interface which receive callback. There are two kinds of clients which can connect to service. One client produces data and the other is the consumer of the data. The consumer receives the…
0
votes
1 answer

How can I use jupyter notebook with binder and appmode?

I want to create demo app by jupyter notebook and appmode and then would like to push to binder. However, after pushing to binder, we can't use appmode in that notebook. Should I do anything special for that? I tried to add…
nemumi
  • 1
0
votes
1 answer

How to detect that a client of Binder is killed?

I am using Binder for communication between two processes. Suppose process A (server) creates a Binder and passes it to process B (client). Process B calls the relevant interfaces on the received IBinder. I know that B can monitor if process A is…
progquester
  • 1,228
  • 14
  • 23
0
votes
1 answer

grpc-binder: how to send Parcelable from server to client

Parcelable data from client to server can use ParcelableUtils.metadataKey to build grpc [Metadata headers]. but, how to send Parcelable data from server to client?? [Metadata headers] is only client to server?
Seven Sir
  • 3
  • 2
0
votes
0 answers

In android frameworks, how can we be sure the correct handler would receive a message?

In Android Framework, Handler are used to send messages to and receive messages from MessageQueue. I have the following programs that implements 2 handler classes MySensor and MyReceiver (both inherit android handler). Their instances are created on…
Minh Pham
  • 275
  • 1
  • 13
0
votes
0 answers

Why didn't the callback function on binder client run?

I am using the vndbinder to remotely call API in a binder service process. All APIs work well but the one with a callback parameter is not running as expected. The call sequence is showed in the blow diagram. I tried A: register the callback(let's…
Benjamin
  • 1
  • 1
0
votes
1 answer

Why DeadObjectException during AIDL call using byte[] but not Bitmap?

Let's say there are two processes. I am interested in making an AIDL call (e.g. byte[] getBytes()) from an Activity (Process A) to a Service (Process B) which returns a byte[] of data. However when this byte[] of data exceeds 1MB, it triggers the…
code
  • 5,294
  • 16
  • 62
  • 113
0
votes
2 answers

Binder - ERROR: No matching distribution found for pandas==1.X.X

I came across an issue that while I was able to resolve, I believe would benefit this platform. I will therefore pose the question here and answer it. When attempting to publish an app on binder, you are required to create a Requirements.txt file…
HOSSAM
  • 37
  • 7