Code example for Messenger

Methods: getBinder

0
        return START_STICKY;
    } 
 
    @Override 
    public IBinder onBind(Intent intent) {
        return mMessenger.getBinder();
    }; 
 
    // Register health application through the Bluetooth Health API. 
    private void registerApp(int dataType) {
        mBluetoothHealth.registerSinkAppConfiguration(TAG, dataType, mHealthCallback);
    } 
 
    // Unregister health application through the Bluetooth Health API. 
    private void unregisterApp() { 
        mBluetoothHealth.unregisterAppConfiguration(mHealthAppConfig);
    } 
 
    // Connect channel through the Bluetooth Health API. 
    private void connectChannel() { 
        Log.i(TAG, "connectChannel()");