Code example for IBinder

Methods: queryLocalInterface

0
public static uk.co.md87.android.sensorlogger.rpc.SensorLoggerBinder asInterface(android.os.IBinder obj)
{ 
if ((obj==null)) {
return null; 
} 
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof uk.co.md87.android.sensorlogger.rpc.SensorLoggerBinder))) {
return ((uk.co.md87.android.sensorlogger.rpc.SensorLoggerBinder)iin);
} 
return new uk.co.md87.android.sensorlogger.rpc.SensorLoggerBinder.Stub.Proxy(obj);
} 
public android.os.IBinder asBinder()
{ 
return this;
} 
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{ 
switch (code)
{ 
case INTERFACE_TRANSACTION:
{