我有实现队列的 X 类。
我想将 X 类的对象传递给 AIDL 接口。当我在 .aidl 文件中导入类 X 时,Eclipse 显示错误并说“找不到类 com.test.X 的导入”。虽然上课在那里。
package com.test
public class X implements Queue<byte[]>{
public LinkedList<byte[]> que = new LinkedList<byte[]>();
int push =0, pop = 0;
public Iterator<byte[]> iterate = null;
public X()
{
iterate = que.iterator();// TODO Auto-generated constructor stub
}
}
在 Google 上搜索时,我发现您必须为您希望在服务中使用的每个类创建一个单独的 .aidl 文件。所以,我创建了 X.aidl 但它没有用。任何人都可以提出一些建议吗?
谢谢。