final IRemoteService remoteService, final IRemoteCall remoteCall) {
// Make async call
remoteService.callAsync(remoteCall, new IRemoteCallListener() {
public void handleEvent(IRemoteCallEvent event) {
if (event instanceof IRemoteCallCompleteEvent) {
final IRemoteCallCompleteEvent complete = (IRemoteCallCompleteEvent) event;
if (complete.hadException()) {
showException(complete.getException());
} else
showResult(interfaceClass.getName(), remoteCall,
complete.getResponse());
}
}
});
}