草庐IT

android - AllJoyn 中的 BUS_BLOCKING_CALL_NOT_ALLOWED 错误

我正在尝试将AllJoyn用于我的应用程序,但是当我尝试使用示例代码(sample13)时,我无法加入session并收到错误BUS_BLOCKING_CALL_NOT_ALLOWED。bus.registerBusListener(newBusListener(){@OverridepublicvoidfoundAdvertisedName(Stringname,shorttransport,StringnamePrefix){shortcontactPort=CONTACT_PORT;SessionOptssessionOpts=newSessionOpts();Mutable.I

安卓 AllJoyn : Connection with second machine gives error of BusAttachement

我已经为两种不同的传感器开发了应用程序。它们单独工作正常,但是当我尝试将它们组合在一起并创建两个不同的总线时,Alljoyn给出了这个异常。org.alljoyn.services.common.BusAlreadyExistException:TheobjecthasbeensetpreviouslywithaBusAttachment.下面是我的连接源代码。谁能告诉我为什么会遇到这个问题。privatevoidconnect(){org.alljoyn.bus.alljoyn.DaemonInit.PrepareDaemon(getApplicationContext());bus
12