Comments (4)
Not sure what you mean, Remoter doesn't bind to service. that is done outside of remoter.
from remoter.
I'm looking at the kotlin implementation as I was evaluating whether I should use it. Unless I'm misreading it, in the ServiceConnector, upon an onServiceDisconnected, you explicitly clear the service binder, which when a call to getService() happens, will cause it to try to explicitly bind to the service again with the same ServiceConnection, however, the ServiceConnection was never removed (unbindService()). Ideally, upon onServiceDisconnected(), all clients should wait for the onServiceConnected() call to happen unless a call to onBindingDied() gets called, in which case, you need to unbind then bind again (however, IDK if you really want to in this case because it means the remote process is in a death spiral).
The reason for all this is that there is retry logic to bring up bound service in case of failure. For the most part, if the failures aren't happening one after the other, you should always get a call back on onServiceConnected at some point unless you get a call to onBindingDied. If you get a call to onBindingDied, it means that the process you are trying to communicate to is in a death spiral and it's probably best to provide some way to notify the user of this API that this is the case as what should happen next really depends on how they want to handle it.
from remoter.
Thanks for the info!. Will take care of it soon and will comment here once done
from remoter.
Fixed in version 2.0.3. Added more tests and sample to cover this
from remoter.
Related Issues (14)
- is there sample client app code? HOT 1
- Unchecked Exception is swallowed on oneway communication HOT 1
- package org.parceler does not exist HOT 2
- Accessing AIDL file HOT 2
- Does not work w/ Parcelize HOT 1
- Allow code generation for foreign interfaces. HOT 16
- Communication between 2 apps
- How to call setStubProxyCheck on a listener. HOT 6
- is It possible user Remoter service in bindDeviceAdminServiceAsUser of the DevicePolicyManager? HOT 4
- Android 14 HOT 1
- issue with generic interface inheritance HOT 1
- @Parcelize - Unresolved reference: CREATOR HOT 1
- Interface mismatch between Proxy and Stub on Huawei Mate 20 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remoter.