Unable To Bind To Service After Moving To Android 11
I have two applications. One that is a foreground service that does not use any of the permissions introduced in Android 11 (camera, location etc). I have client apps that connect
Solution 1:
You will need to add a <queries>
element to the manifest of your client app, identifying the service app.
In this sample app with an application ID of com.commonsware.android.r.embed.server
, I have a bound service.
In this sample client app, I added these lines to the manifest to allow the client app to bind to the service app:
<queries>
<package android:name="com.commonsware.android.r.embed.server" />
</queries>
Post a Comment for "Unable To Bind To Service After Moving To Android 11"