Code example for IBinder

Methods: transact

0
				Parcel reply = Parcel.obtain(); 
 
				data.writeInt(a); 
				data.writeInt(b); 
 
				ib.transact(0, data, reply, 0); 
 
				result = reply.readInt(); 
 
			} catch (RemoteException e) { 
				e.printStackTrace(); 
			} 
 
			mButton.setText(String.valueOf("A+B=" + result)); 
		} 
	}; 
 
}