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
1
vote
0 answers

ClassCastException: android.os.Handler$MessengerImpl cannot be cast to My

I have declared an handler in my service: final Messenger messenger = new Messenger(new MusicAPIControlHandler()); public class MusicPlayerBinder extends Binder { public MusicPlayerService getService() { return MusicPlayerService.this; …
1
vote
1 answer

Why are there so many binders and asynctasks in my thread group list? How are they managed?

The setup: I have service class and two activities that bind to it. The first is the main UI activity that calls on startService(intent); bindService(intent, mConnection, Context.BIND_AUTO_CREATE). The second activity only calls on …
1
vote
0 answers

Android TransactionTooLargeException after many hours test

I faced an issue on Samsung's devices. After many hours of stress test, two widgets display abnormally and an ANR happened about this two widgets (cmaweather and storyalbumwidget). Here is the trace: 02-11 08:38:00.219 W/ActivityManager( 728):…
1
vote
1 answer

Android blocking intent

Can my application block intents from other applications ? I would like to block requests from specific applications, How can it be done ? I have access to the AOSP so I would like to understand where in the code I can add the blocking…
omri-c
  • 81
  • 1
  • 7
1
vote
1 answer

FAILED BINDER TRANACTION when launching an activity

I think that my issue may be related to this stack post (Android remote method data limit) - only the size of the data being returned is 661KB and the article says that the binder can support 1MB. Here is the situation: I have an async task that…
1
vote
1 answer

Do broadcast reciever relies on binder or intent, Android

When I set up a broadcast reciever in Android. Does this, on the lowest levels rely on Binder? or can you get around Binder in any way?
1
vote
0 answers

Facebook API's fail on devices but not emulator

I have a Facebook 2.0 app and I am trying to upgrade to 3.0. I downloaded the new SDK but when I try to run the sample apps on my Samsung S3 or Note devices it fails with either of these errors depending on the app: E/SpannableStringBuilder(31569):…
Chris
  • 379
  • 1
  • 6
  • 19
1
vote
2 answers

Involvement of binder driver in Intents (a form of IPC)

I am planning to do an out-of-the-box analysis of android apps. That is, I'll run the app in an Android QEMU emulator and do virtual Machine Introspection (VMI) to monitor the behavior of the app. To this end, I have instrumented the QEMU emulator…
Maggie
  • 5,923
  • 8
  • 41
  • 56
1
vote
1 answer

How to properly upgrade AIDL interfaces in Android?

I have two apps: One is called my-app.apk, the other my-service.apk. The service app just defines a single Android Service, which can be bound by the primary app to execute some methods. This is done using Androids AIDL interface, and it works great…
mreichelt
  • 12,359
  • 6
  • 56
  • 70
1
vote
1 answer

Should I sign an Android app with multiple certificates or what?

I have an Android service that uses private Android binder apis (IWindowManager specifically). When I build this as part of Android platform source code and install it on a device (where I have Uboot access etc), it works fine. I don't like GIT, so…
videoguy
  • 1,732
  • 2
  • 24
  • 49
1
vote
2 answers

Binding a service from a different APK

I need some help to bound a service by expending the Binder class. I have 2 APKs. The first one declare a service and I want to bind it from an activity of the second APK. Both APKs uses the same sharedUserId and the same android:process. Since they…
nbe_42
  • 1,212
  • 1
  • 14
  • 22
1
vote
1 answer

native code bind to the service in java

I have a program written in native c. And right now,i want this native c program comunicate with the service wriiten in java using bind. Any one can show me how? Actually,i have aready tried to do it using local socket.But it is so slow. thx!
kaiwii ho
  • 1,367
  • 7
  • 21
  • 40
1
vote
2 answers

How to communicate back from a bound service with a Handler?

I am currently communicating with an external service from a plugin my app uses. The bound service eventually starts an activity and then shall notify the main app that the Activity has finished. The problem is, that the Service gets notified by a…
Force
  • 6,312
  • 7
  • 54
  • 85
1
vote
0 answers

Getting service instance from IBinder (SyncAdapterBinder)

I have a service I'm using to synchronize my contacts and I wanted to add some more methods to it (I didn't create this service, I'm just extending it and I'm a bit lost). I'll call these methods in certain circumstances, so I'm gonna need the…
PX Developer
  • 8,065
  • 7
  • 42
  • 66
1
vote
1 answer

Failed Binder Transaction text file

I have to read some datas from text file with 96000 bytes so that I can plot a line Graph. I've tried to read every 2 byte and combine them in 2 byte and then I made 8 arrays with 6000 integer each.But I'm having the mentioned error!! If I try to…
james didi
  • 33
  • 5