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
2
votes
1 answer

Binder thread interrupt unexpected behavior

Android ContentProviders use a pool of "binder threads" to process RPCs such as query, insert and call. In my implementation of a ContentProvider I am performing a long running task that is interruptible using Thread#interrupt(). I wrote a watchdog…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
2
votes
1 answer

ContentProvider and Binder IPC

i have a doubt regarding content provider.. we know binder cant transfer large amount of data (~>3MB) but even content provider uses binder IPC right which may involve >3 MB transfer? or content provider directly read database within caller process…
2
votes
0 answers

Use a service and binder from a library project

I'm currently working on a radio streaming application. To do the work i decided to create a Library project to do some code refactoring So in my Library project i have :…
An-droid
  • 6,433
  • 9
  • 48
  • 93
2
votes
1 answer

communicate to service from activity

I'm trying to communicate with a service. I found this Android Guide. I did like in the first example but i have an error: "java.lang.RuntimeException: Unable to bind to service com.example.internetcall.MyService@41763970 with Intent { …
WellDone2094
  • 175
  • 1
  • 9
2
votes
0 answers

The binder in android

I obtain the agent interface of service manager by ProcessState and defaultServiceManager in android binder server. I also get the agent interface by defaultServiceManager in client. I want to know if it create new ProcessState object when it call…
DaringLi
  • 409
  • 2
  • 6
  • 16
2
votes
1 answer

Find binder object in parcel

How can i find binder object in a android parcel? i want to marshall a parcel which has got a bitmap but i got Runtime exception says that the parcel has got binder object.
Furniture Sell
  • 249
  • 3
  • 11
2
votes
4 answers

Android - Binder

I read an article about android's binder. The article says that the processes swap the object references in the shared memory and that it is more efficient than marshalling and unmarshalling...But in fact there is a marshalling and unmarshalling in…
Tobi Weißhaar
  • 1,617
  • 6
  • 26
  • 35
2
votes
2 answers

understanding dumpsys meminfo

I have two questions. In dumpsys meminfo, there is one number called Local Binders. What does it mean? Is it simply a kind of native pointer? And in which cases would this number increase? I have observed that the app or even the emulator would…
dacongy
  • 2,504
  • 3
  • 30
  • 48
1
vote
1 answer

SEPolicy for multiple services using AIDL in Android Native

I want to add multiple services with: MyService sv1 = MyService::getInstance(mode::mode1); defaultServiceManager()->addService(String16("Service1"), sv1); MyService sv2 =…
1
vote
0 answers

Jupyterlab-dash needs to be included in built on Binder but then throws an error

I am trying to launch a Binder rep and import JupyterDash into it. The Binder built worked. In my Binder rep enter link description here My yml is: name:…
Ormetrom2354
  • 315
  • 3
  • 11
1
vote
2 answers

R and Rstudio Docker vs Binder

My problem is that I can't use R-studio at my work place as the IT does not support it . I want to use R and R-studio that installed on my personnel laptop on my company laptop ( using a modern browser which is behind firewall ) . Some of the…
kumar
  • 11
  • 2
1
vote
5 answers

Avoid Service callback when Activity gets closed and re-opened

I have a LocalService that exposes a Binder with some APIs. I create a Service Listener, just like this: if (dataServiceListener == null) { dataServiceListener = new DataServiceListener(); mainActivity.getApplicationContext().bindService …
frapontillo
  • 10,499
  • 11
  • 43
  • 54
1
vote
2 answers

Make Jupyter notebook executable in html format

I'm trying to export a Jupyter notebook in HTML, obtaining an executable version of it. Until now, my approach is to upload the notebook in a git repository and then using binder to obtain its executable version. I would like to upload the notebook…
1
vote
0 answers

Is there an example for using NdkBinder with CMakeLists.txt

I found some information on Android Dev Site, https://developer.android.com/ndk/reference/group/ndk-binder, but don't know how to implement this. Another piece of information is the test at…
Jinesi Yelizati
  • 271
  • 1
  • 7
1
vote
0 answers

DefaultModelBinder substitute in dotnet core

I used DefaultModelBinder in my ASP.NET MVC project. It worked as a default binder mechanism if a custom one didn't work. Now I'm rewriting the project to dotnet core and DefaultModelBinder does not exist here. I want to map the following URLs to…
klm_
  • 1,199
  • 1
  • 10
  • 26