android-service-binding Questions

2

Solved

I am trying to develop a setup of 2 applications (service app + client app) using AIDL. I have currently a setup of 3 modules: android-agent-framework (android library module holding only the AID...
Engeddi asked 5/5, 2016 at 20:27

1

Note: This question assumes you know binding a service to a context. Everyone on the production is aware of this issue, or even some users that have an Android Oreo or Pie device. The exception l...

2

Solved

First of all, this question is NOT about how I can prevent the app from being killed. Actually I want it to be killed. Now the problem. My application connects to a BLE devices and I want the conne...
Lumpish asked 9/4, 2021 at 18:7

8

Solved

I have a setup that looks something like this: class MyFragment implements SomeEventListener { Application mAppContext; boolean mBound; boolean mDidCallUnbind; MyIBinder mBinder; ServiceCo...
Lumbar asked 27/2, 2014 at 20:43

1

Solved

My project requires an android foreground service to run continuously (even after the application is destroyed). To this effect I have the following code snippets: build.gradle implementation fil...

4

Solved

I have created a service to fetch current location of the device in periodic intervals. I want the service to run in the background even if the app is cleared from recently opened apps. Currently t...

4

Solved

I am encountering following binder.proxy exception every time i declare and run two services. One service runs in different Process(Private to app) and another service runs in same process as My Ap...
Nihhi asked 6/2, 2015 at 11:25

3

Solved

I have a Service that I am trying to bind to my main Activity, but I am receiving a java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.walintukai.rubix.ConnectionService$L...

1

Solved

I wrote a basic bound service based on the Android documentation, but LeakCanary is telling me the service is leaking. Is there a leak or have I misconfigured LeakCanary? How can I write a boun...
Organogenesis asked 22/5, 2019 at 8:15

4

I have a Foreground Service which I start and stop with a Toggle Button in an Activity. To keep track if the Service is running or not I have used a variable which I store in SharedPreference. Her...

0

In my Android-O device, below two background services communicating each other though AIDL. Native/c++ android service Starts through init rc Runs with system linux-user Deployed in /system par...

2

Solved

I'm surprisingly struggling to get hold of the instance of a service which is derived from MediaBrowserServiceCompat. For a typical service, to achieve that, a local binder is used class MyServic...

3

Solved

I'm following the example on android guide for bound service using messenger and running the following code snippet. I've modified the snippet slightly to have a hi and a bye button and the servic...
Phosphoresce asked 18/9, 2014 at 13:43

4

Solved

I know the question about how to communicate between a service and an activity has been answered many times but I also want my own way of doing this to be reviewed and to know if its an acceptable ...

1

I am wondering if there is a way I can detect a skype call/telegram/whatsapp/fb messenger call etc in progress or incoming call etc just like the regular phone call with telephony manager/listener?...

2

Solved

I am using Intent Service to monitor Geofence transition. For that I am using following call from a Sticky Service. LocationServices.GeofencingApi.addGeofences( mGoogleApiClient, getGeofencingR...

3

I am having an issue with an app I am creating. Basically the app will crash the first time you try to open it and then it will be alright after that. The confusing part is it only happens when you...
Irresistible asked 16/10, 2017 at 21:32

2

Solved

I am curious to know why would you use Bound Service for 2 way interaction between Activity and Service when you can do the same kind of interaction with Started Service using local broadcasts and ...
Farflung asked 12/5, 2017 at 22:55

3

Solved

I have activity, that starts service and binds it. But I want my service to run even if the activity is closed, so I need to unbind it. When i am trying to do so (calling my function disconnectFrom...
Goblin asked 14/4, 2017 at 9:47

1

Solved

I would like to access notifications on a Android phone by using the NotificationListenerService. I checked lots of tutorials but I can't find where they call the service. Should I use bindService...

2

Solved

I have several Android Services that I want to bind to in my Activity, so I can monitor several actions from the user. To be able to bind every Service, and I will have several, do I need several...

1

Solved

I'm building a remote service and a client application targetted at API 24 executing on a Nexus 6P device. I have a remote service that automatically starts at boot. Here are the code fragments: R...
Radicle asked 27/9, 2016 at 15:26

1

Solved

I'm trying to create a simple unbound service in kotlin, but I can't. When I override onBind() method in Java I can return null, but in kotlin it says I'm only allowed to return IBinder and not IBi...

2

I have to implement an Overlay Window like True Caller App has.But the problem I am getting is, During any Incoming or Outgoing call my service automatically getting close or destroyed. Service c...

2

Solved

I have some boubts about Android bound service. The guide: http://developer.android.com/guide/components/bound-services.html ,about bindService(), says: The `bindService()` method returns immedia...

© 2022 - 2024 — McMap. All rights reserved.