Code example for RemoteException

Methods: printStackTrace

0
 
        try { 
            mClient.send(Message.obtain(null, what, value, 0));
        } catch (RemoteException e) {
            // Unable to reach client. 
            e.printStackTrace();
        } 
    } 
 
    // Thread to read incoming data received from the HDP device.  This sample application merely 
    // reads the raw byte from the incoming file descriptor.  The data should be interpreted using 
    // a health manager which implements the IEEE 11073-xxxxx specifications. 
    private class ReadThread extends Thread {
        private ParcelFileDescriptor mFd;
 
        public ReadThread(ParcelFileDescriptor fd) {
            super(); 
            mFd = fd;
        } 
 
        @Override