에서 활성 개체의 목록을 반환하는 방법을 ...
그래서 나는 인터페이스 IJobController.aidl에서 IJobController이 :
import com.example.jobs.api.IJobExecutionContext; 이러한 정의는 세대 폴더에 컴파일 할 때다른 클라이언트 응용 프로그램에 안드로이드 서비스 응용 프로그램에서 원격으로 일부 인터페이스에 노력하고 AIDL 접근 방식을 사용하여 안드로이드 IPC
interface IJobExecutionContext {
Bundle getJobResult();
...
long getJobStartTime();
long getJobEndTime();
long getJobRunTime();
}
, 내가 생성 된 IJobController.java 파일에 다음과 같은 오류를 얻을 : IJobExecutionContext가 자신의 AIDL에 정의되어
interface IJobController {
List<IJobExecutionContext> getCurrentlyExecutingJobs();
...
}
Type mismatch: cannot convert from ArrayList<IBinder> to List<IJobExecutionContext>
The method writeBinderList(List<IBinder>) in the type Parcel is not applicable for the arguments (List<IJobExecutionContext>)
필자는 이러한 인터페이스를 기본 유형, Parcelable 등과 함께 List (또는 Map)에서 사용할 수 있음을 알고 있습니다. AIDL 인터페이스 만 반환하는 다른 방법에서는 모든 것이 정상이지만 목록 컨테이너에서는 그렇지 않습니다.
원시 목록, 또는 의 IJobExecutionContext 구현 목록을 반환해야합니까? Parcelable?
감사합니다.