Android RemoteException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android RemoteException class.

This code example shows how to use the following methods:printStackTrace
	 
	public boolean isServiceAuthenticated() { 
		try { 
			return xmppServiceStub.isAuthenticated();
		} catch (RemoteException e) {
			e.printStackTrace();
		} 
		return false; 
	} 
 
	public void clearNotifications(String Jid) {
		try { 
			xmppServiceStub.clearNotifications(Jid);
		} catch (RemoteException e) {
			e.printStackTrace();
		} 
	} 
} 
6
CodeRank
This code example shows how to use the following methods:toString
            } 
        } catch (IllegalArgumentException e) {
            System.err.println("Error: " + e.getMessage());
            return; 
        } catch (RemoteException e) {
            System.err.println(e.toString());
            System.err.println(IMM_NOT_RUNNING_ERR);
            return; 
        } 
    } 
     
    private void runSet() { 
        String id = nextArg();
        if (id == null) {
            System.err.println("Error: no input method ID specified");
            showUsage(); 
            return; 
        } 
         
        try { 
6
CodeRank
This code example shows how to use the following methods:getMessage
					if (mReceivedOpenUDIDs.containsKey(_openUDID)) mReceivedOpenUDIDs.put(_openUDID, mReceivedOpenUDIDs.get(_openUDID) + 1);
					else mReceivedOpenUDIDs.put(_openUDID, 1);
						 
				} 
			} 
		} catch (RemoteException e) {if (LOG) Log.e(TAG, "RemoteException: " + e.getMessage());}		    	    			
		mContext.unbindService(this);
		 
		startService(); //Try the next one 
  	} 
	 
	@Override 
	public void onServiceDisconnected(ComponentName className) {}
	 
	private void storeOpenUDID() { 
    	final Editor e = mPreferences.edit();
		e.putString(PREF_KEY, OpenUDID);
		e.commit();
	} 
	 
6
CodeRank
This code example shows how to use the following methods:toString
     */ 
    private static final long serialVersionUID = 8950974759973459561L;
 
    public AntRemoteException(RemoteException e)
    { 
        this("ANT Interface error, ANT Radio Service remote error: "+e.toString(), e);
    } 
     
    public AntRemoteException(String string, RemoteException e)
    { 
        super(string);
         
        this.initCause(e);
    } 
} 
6
CodeRank
This code example shows how to use the following methods:printStackTrace
					 
					Message msg = new Message();
					mHandler.sendMessage(msg);
					 
				} catch (RemoteException e) {
					e.printStackTrace();
				}			 
			super.run(); 
		} 
    	    	 
    	 
    } 
 
    public boolean LedOn(int n) {
    		mThread.run(); // async method call
    		return true; 
    } 
 
    public boolean LedOff(int n) {
        boolean result = false;
5
CodeRank
This code example shows how to use the following methods:getMessage
	public void onClick(final DialogInterface dialog, final int which) {
	    if (which == DialogInterface.BUTTON_POSITIVE) {
		try { 
		    mRoster.deleteContact(mContact);
		} catch (RemoteException e) {
		    Log.e(TAG, e.getMessage());
		} 
	    } 
	} 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:getMessage
		    name = mContact.getJID();
		} 
		try { 
		    mRoster.setContactName(mContact.getJID(), name);
		} catch (RemoteException e) {
		    Log.e(TAG, e.getMessage());
		} 
	    } 
	} 
    } 
} 
5
CodeRank
This code example shows how to use the following methods:printStackTrace
 
        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;
        } 
 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
			} 
 
			try { 
				playerInterface.setVolume(volume,pan);
			} catch (RemoteException e) {
				e.printStackTrace();
			} 
			break; 
		} 
 
		int x = (int) event.getX();
		if(x < pad_left){
			x = pad_left;
		} 
		if(x > w - pad_right){
			x = w - pad_right;
		} 
 
		invalidate();
		return true; 
4
CodeRank
This code example shows how to use the following methods:printStackTrace
	public void UpDateView() { 
		try { 
			bass_value = playerInterface.getBassLevel();
			invalidate();
		} catch (RemoteException e) {
			e.printStackTrace();
		} 
	} 
} 
4
CodeRank

Related Android RemoteException Questions & Answers:

See Code Examples for Android RemoteException Methods: