Code example for IBinder

Methods: queryLocalInterface

0
public static com.google.android.vending.licensing.ILicenseResultListener 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 com.google.android.vending.licensing.ILicenseResultListener))) {
return ((com.google.android.vending.licensing.ILicenseResultListener)iin);
} 
return new com.google.android.vending.licensing.ILicenseResultListener.Stub.Proxy(obj);
} 
public android.os.IBinder asBinder()
{ 
return this;
} 
public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{ 
switch (code)
{ 
case INTERFACE_TRANSACTION:
{