Parcel.writeStrongBinder 与 Parcel.writeStrongInterface 的区别

来源:互联网 发布:淘宝店铺管理中心 编辑:程序博客网 时间:2024/05/19 13:08
看源码 

android.os.Parcel  


    /**     * Write an object into the parcel at the current dataPosition(),     * growing dataCapacity() if needed.     */    public final void writeStrongInterface(IInterface val) {        writeStrongBinder(val == null ? null : val.asBinder());    }



只  是把 IInterface  转成了 Binder 对象 ,其实2者是一样的 。




http://item.taobao.com/item.htm?spm=a230r.1.14.107.Dxvf1N&id=36480821704&_u=9ddbah0c75


原创粉丝点击