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

Android Binders - How multiple processes synced on read/write?

I was wondering how Binders work internally when it comes to serve multiple processes at the same time. I tried to walk over the driver's code but it was a little bit complicated. However, if I'm not mistaken, I've seen the code includes some locks…
stdout
  • 2,471
  • 2
  • 31
  • 40
0
votes
0 answers

Android AIDL for local service

Can i able to use the AIDL interface to communicate with the localservice within same package in android? without penalty?
0
votes
1 answer

What's wrong with 7 android?

I have Service for receive udp datagramm sockets private void startServer(final UdpServerListener listener) { mStarted = true; mWakeLock.acquire(10 * 60 * 1000L /*10 minutes*/); Looper myLooper =…
0
votes
1 answer

Binder_thr Created in my Application

I am trying to understand what all thread runs when I start the application. I created a simple application in Android Studio, no extra line of code added, it is just a plain simple Hello World application which android studio creates. When I run…
Amol K
  • 165
  • 3
  • 12
0
votes
1 answer

Binding not working - how to?

I can't understand why my java bean properties it's not updated after the user has changed the text in some textfield. I have configured the pojo and binding but it's not working. Can someone explain me why is not working? The binding is working…
0
votes
2 answers

Call methods of Firebase Messaging Service from main activity

TL;DR: How can I turn off the vibration, which is turned on in the Firebase Messaging Service, in the main activity? I'm creating an app which gets push notifications from Firebase. Those push notifications are generated by a PIR motion sensor…
PaulB
  • 73
  • 6
0
votes
0 answers

How to convert an Encrypted char array to String16 in C++

I need to encode an input string of type String16.For this I convert this string first into an ASCII byte array of type uint8_t and pass this input buffer to the encryption function which encrypts the input buffer and generates an encrypted output…
0
votes
0 answers

Implement native binder code of c++

I have the following code for native binder implementation. #define LOG_TAG "binder_demo" #include #include #include #include #include #include…
aalisha
  • 41
  • 8
0
votes
1 answer

Understand Bound Service Documentation

Refer to the example in this Bound Service documentation: https://developer.android.com/guide/components/bound-services.html Binder is a class implementing the interface IBinder. However, in the example, I cannot understand why we use IBinder…
cuongptnk
  • 472
  • 3
  • 15
0
votes
0 answers

binding service from another app

In app, that provide service i have two AIDL files: interface ICountTest { oneway void count(in INotifierTest test); } interface INotifierTest { oneway void notify(int count); } Basically i want to count till Integer.MAX_VALUE in for loop…
Nik Myers
  • 1,843
  • 19
  • 28
0
votes
1 answer

Which process binder driver runs in?

I know binder is Android IPC mechanism. If a process A communicates with a process B by binder, transaction data flow through binder driver which create binder_node in the process A and create binder_ref in the process B respectively in kernel…
Victor Choy
  • 4,006
  • 28
  • 35
0
votes
1 answer

How to bind java service in native code?

Is it possible to bind java services in pure native code? Essentially, calling this part of code in under native C code Intent i = new Intent(); i.setClassName("com.example.fooservice", "com.example.fooservice.service"); bindService(i,…
xuguo
  • 1,816
  • 1
  • 11
  • 15
0
votes
1 answer

RecyclerView's IBinder RuntimeException, but it doesn't crash the app

I have kind-of-a problem. Although, it's a RuntimeException it doesn't crash app, but makes scrolling through RecyclerView laggy when scrolled faster. With each new row shown this logs come: Caught a RuntimeException from the binder stub…
jean d'arme
  • 4,033
  • 6
  • 35
  • 70
0
votes
1 answer

Use Service or Binder object to set variable inside Service

I can either set an variable int[] by using the binder object or using the service class object itself. Code is in public class MyActivity extends Activity. Which one is the way to go, both works: private BackgroundService.BackgroundBinder…
droid192
  • 2,011
  • 26
  • 43
0
votes
1 answer

android native binder crash while server send msg to client

I have suffered from this bug for days. Help me, if you know anything that may help. I use the camera framework to get my hardware work. Most of the time, it works properly. Howerver, sometimes the binder kill my server's main thread because that…
Vincent Yang
  • 189
  • 1
  • 12