In Binder.java, public void attachInterface(IInterface owner, String descriptor) { mOwner = owner; mDescriptor = descriptor; }
/** * Attempt to retrieve a local implementation of an interface * for this Binder object. If null is returned, you will need * to instantiate a proxy class to marshall calls through * the transact() method. */ public IInterface queryLocalInterface(String descriptor) { if (mDescriptor.equals(descriptor)) { return mOwner; } return null; } In ISms.java generated by ISms.aidl and AIDL tool, public Stub() { this.attachInterface(this, DESCRIPTOR); } The function attachInterface(IInterface owner, String descriptor) will be invoked whenever the object of ISms.Stub or the classes that extend it. So it seems that the function queryLocalInterface(String descriptor) will not return null forever. However, the comments said that it will return null if the Binder is not a local one. Does anybody know anything I missed? Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---