草庐IT

beacon_info

全部标签

android - Gradle 安卓 : How to Display test results without using --info

我正在使用GradleAndroid插件运行android测试,并希望查看单独的测试结果。来自这个问题的答案Gradle:HowtoDisplayTestResultsintheConsoleinRealTime?看来我可以使用--info(它打印出很多我不关心的其他冗长的垃圾)或者使用这个只适用于Java插件(不适用于Android插件)的闭包test{afterTest{desc,result->println"Executingtest${desc.name}[${desc.className}]withresult:${result.resultType}"}}当我运行conn

android - Estimote beacons - 监听器和测距监听器的区别

我好像不太明白MonitoringListener和RangingListener的区别。在我的特定用例中,我想不断了解范围内的所有信标,并想知道与它们中的任何一个关联的区域何时退出。这是我正在谈论的内容的一个fragment:beaconManager.setRangingListener(newBeaconManager.RangingListener(){@OverridepublicvoidonBeaconsDiscovered(Regionregion,finalListbeacons){}});beaconManager.setMonitoringListener(newB

javascript - Android Webview 错误 IN/chromium : [INFO:CONSOLE(1)] "Uncaught ReferenceError:

我有一个web服务,因为我已经为android添加了条形码阅读器所以在JavaScript的帮助下,我从WebView调用我的条形码阅读器因此Ifollowedthis在服务器端设计...我给了这个在JavaScript上functionmybarcd(){MyApp.mybarcdt();}functionactfromAnd(msg){document.getElementById("brcd").value=msg;}atHTML/PHPSCAN在Android端在WebView中webView.addJavascriptInterface(newWebAppInterface(

android - 使用 Gimbal sdk 编程我的 android 应用程序未检测到 gimbal beacon

我正在尝试创建一个android应用程序来使用Gimbalsdk检测基于Gimbal的信标,但我的应用程序无法检测到信标。但是如果我尝试使用BluetoothGATT,我可以检测到信标。以下是我的代码中监听信标事件的部分。APIkey验证成功,但仍然无法显示接近度。publicclassMainActivityextendsActivity{privatePlaceManagerplaceManager;privatePlaceEventListenerplaceEventListener;privateBeaconEventListenerbeaconEventListener;pr

android - 未找到输出 : error: resource style/TextAppearance. Compat.Notification.Info(又名 package_name :style/TextAppearance. Compat.Notification.Info)

切换到AndroidStudio3.2canary后,我收到以下构建错误。我看过this发布这个人有类似问题但没有提到解决方案的地方。我想尝试新的Material组件和喷气背包,所以有没有可能我不必切换回去。com.android.builder.internal.aapt.v2.Aapt2Exception:AndroidresourcelinkingfailedOutput:error:resourcestyle/TextAppearance.Compat.Notification.Info(akacom.nsnik.nrs.kotlintest.debug:style/TextA

android - 找不到错误 :resource style/TextAppearance. Compat.Notification.Info(又名 {packageId}.test :style/TextAppearance. Compat.Notification.Info)

我刚刚将build.gradle编译SDK更新为27API。compileSdkVersion27buildToolsVersion'27.0.3'targetSdkVersion27但是一旦我点击同步按钮它就​​会抛出error:resourcestyle/TextAppearance.Compat.Notification.Info(aka{packageId}.test:style/TextAppearance.Compat.Notification.Info)notfound.error:resourcestyle/TextAppearance.Compat.Notificat

Android BLE Beacon 扫描

BluetoothLE已添加到Android4.3中,但似乎没有后台扫描模式可以唤醒应用程序,一旦它注册为通过附近可用的BLEUUID收到通知。这似乎完全可以通过iOS7和iBeaconsAPI实现。有谁知道Android4.3中是否有这样的功能,或者是否有一个很好的解决方法来定期扫描B​​LE设备的BLE环境?http://developer.android.com/guide/topics/connectivity/bluetooth-le.htmlhttp://techcrunch.com/2013/09/11/estimote-details-ios-7-ibeacon-sup

c++ - 从 std::type_info 检索数据类型的大小

在C++03中,当您使用运算符typeid时,一个type_info返回对象。是否可以仅根据此结果检索给定类型的大小,例如由sizeof返回的运营商?例如:std::type_infoinfo=typeid(int);intintSize=sizeof(int);intintSize2=info.getSize();//doesn'texist!问题是我们使用第三方多数组类返回类型信息,但不返回类型的大小。 最佳答案 我能看到的最好方法(我想被证明是错误的)是预先注册类型,如下所示:#include#include#include#

c++ - type_info 不是 RTTI 的一部分吗?

我问了一个问题DoC++PODtypeshaveRTTI?有人在评论中告诉我:PODtypesdohavetype_info,butdon'thaveRTTI,andthat'spossiblebecausetype_infoisn'talwaysRTTI.这似乎是正确的,因为我可以获得POD(非多态)类型的type_info。但是当我编译这个简单的程序时:#includestructX{inta;};intmain(){usingnamespacestd;std::cout带有GCC的标志-fno-rtti:$g++-fno-rttimain.cpp&&./main它不会编译:mai

c++ - boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::thread_resource_error>>

我需要一些帮助来解决这个异常,我正在实现一个NPAPI插件,以便能够使用来自浏览器扩展的本地套接字,为此我正在使用Firebreath框架。对于套接字和连接,我使用带有异步调用的Boostasio和一个包含5个工作线程的线程池。我还为每个线程设置了截止日期以实现传输超时。我使用插件的扩展工作流程是这样的:打开套接字1(这会启动async_receive和截止时间异步等待)写入套接字1获取响应1打开另一个socket2在套接字2中写入写套接字1关闭套接字1(socket.cancel(),deadline.cancel(),socket.shutdown(),socket发布)。获取响应