Code example for RemoteException

Methods: toString

0
    { 
        if (mService != null) {
            try { 
                mService.setThermalState(value);
            } catch (RemoteException e) {
                Log.e(TAG, " Remote call exception: " + e.toString());
            } catch (NullPointerException e2) {
                Log.e(TAG, " Null pointer exception: "+ e2.toString());
            } 
        } 
    } 
 
    public void InitThermalState() 
    { 
        if (mService != null) {
            try { 
                mService.initThermalState();
            } catch (RemoteException e) {
                Log.e(TAG, " Remote call exception: " + e.toString());
            } catch (NullPointerException e2) {
                Log.e(TAG, " Null pointer exception: "+ e2.toString());