WEB开发网
开发学院手机开发Android 开发 解析 Android 的 AIDL 介面 阅读

解析 Android 的 AIDL 介面

 2010-07-21 01:11:00 来源:WEB开发网   
核心提示:1.4.2 ?真Stub??的程式瘁呃?Stub??就是由aidl.exe所?出的;也就是在calInterface.java彦面。?再重妖列出calInterface.java程式瘁如下:/* calInterface.java *//** This file is auto-generated. DO NOT MO

1.4.2 ?真Stub??的程式瘁

呃?Stub??就是由aidl.exe所?出的;也就是在calInterface.java彦面。?再重妖列出calInterface.java程式瘁如下:

/*---- calInterface.java ----*/

/*

* This file is auto-generated. DO NOT MODIFY.

* Original file: calInterface.aidl

*/

package com.misoo.gx06;

import java.lang.String;

import android.os.RemoteException;

import android.os.IBinder;

import android.os.IInterface;

import android.os.Binder;

import android.os.Parcel;

public interface calInterface extends android.os.IInterface

{

/** Local-side IPC implementation stub class. */

public static abstract class Stub extends android.os.Binder implements com.misoo.gx06.calInterface

{

private static final java.lang.String DESCRIPTOR = "com.misoo.gx06.calInterface";

/** Construct the stub at attach it to the interface. */

public Stub()

{

this.attachInterface(this, DESCRIPTOR);

}

/**

* Cast an IBinder object into an calInterface interface,

* generating a proxy if needed.

*/

public static com.misoo.gx06.calInterface asInterface(android.os.IBinder obj)

{

if ((obj==null)) {

return null;

}

com.misoo.gx06.calInterface in = (com.misoo.gx06.calInterface)obj.queryLocalInterface(DESCRIPTOR);

if ((in!=null)) {

return in;

}

return new com.misoo.gx06.calInterface.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)

1 2 3 4 5  下一页

Tags:解析 Android AIDL

编辑录入:coldstar [复制链接] [打 印]
赞助商链接