How a client process (in android IPC with aidl) be aware of remote sever class?

33
April 15, 2019, at 9:00 PM

In Android official Aidl document, the IPC client example declares an intent explicitly with the target "RemoteService.class". However, when server and client are not in the same package, client should not be aware of what is "RemoteService" if no dependency set. How does the example works?

ref: https://developer.android.com/guide/components/aidl.html

I searched for several working examples, and the intent is set with Action instead of the remote service class object.

In Android docs,

Intent intent = new Intent(Binding.this, RemoteService.class);
intent.setAction(IRemoteService.class.getName());
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);

Currently, I expect this should be modified to:

Intent intent = new Intent("<remote-service-intent-filter-in-androidmanifest>");
bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
READ ALSO
BLE Disconnection from device acting as advertisement having issue on central side no callback is received

BLE Disconnection from device acting as advertisement having issue on central side no callback is received

CASE 1: When I trying to disconnect from central to peripheral its workingCASE 2: When I am trying to disconnect the central from peripheral after calling cancel connection but its doesn't provide callback to central device

41
get message callback in emit event socket.io android

get message callback in emit event socket.io android

I use javascript code in web for send file name and file size to server with socketio and return bolean (true or false) from server

16
How can I use owfont in Android?

How can I use owfont in Android?

I'm using Owfont and I want to give the weather using the owfont fontI have an "ED31" code and I don't know how to send it

15
Tab Sectioned in Recyclerview which is in NestedScrollview

Tab Sectioned in Recyclerview which is in NestedScrollview

I am developing the application which having same functionality like if we have a menu which have category having Starters, Main Course and Desert in tabs and as I scroll recyclerview visible category should be selected in tab and if I select any tab it scould...

43