In the client activity or fragment, bind to the service and use the AIDL interface to invoke methods. public class MainActivity extends AppCompatActivity {private ICurrencyConverter mService;private ServiceConnection mConnection = new ServiceConnection() {@Overridepublic void onServiceConnected(ComponentName name, IBinder service) {// Obtain the AIDL interface proxymService = ICurrencyConverter.Stub.asInterface(service);}@Overridepublic void onServiceDisconnected(ComponentName name) {mService = null;}};@Overrideprotected void onStart() {super.onStart();// Bind […]