草庐IT

DEVICE_POWER

全部标签

Jenkins 上的 Android 模拟器错误 : device offline

我已经为Jenkins安装了AndroidEmulator插件。我可以构建和测试Android项目。我的Jenkins在Ubuntu服务器上运行(只能通过终端访问)。该项目来自Github。现在我想使用模拟器。这是我的配置:Android操作系统版本:4.4屏幕密度:160屏幕分辨率:480x800目标ABI:armeabi-v7a我还安装了adb并执行了以下命令:/opt/android-sdk-linux/tools/androidupdatesdk--no-ui但它不起作用:>/usr/bin/gitrev-list3440b28279e2e95113ce1c9499d9d881

android - BLE 与 Android 5.0 : How to get a device to act as Central AND Server?

我正在使用两台Android5.0设备通过低功耗蓝牙进行通信,但我不想:设备1作为中心和服务器。设备2作为外围设备和客户端。这是我想要实现的行为:1)设备2开始广播(外设角色)。2)设备1开始扫描(中心角色),通过ScanCallback的onScanResult方法获取广告设备(BluetoothDevice对象)。3)我现在想要通知广告设备(设备2)它已被扫描并能够获取与设备1关联的BluetoothDevice。4)设备1有一个BluetoothGattServer实例。设备2现在将调用设备1上的connectGatt(Contextcontext,booleanautoConn

【stm32无法识别接口、烧录失败|No Cortex-M Device found in JTAG chain|cannot reset target】

先检查芯片焊接,无误的前提下更改debug我的环境无法识别仿真器接口烧录失败解决方案错误报告:解决方案参考及其他解决方案:我的环境stm32f334c8t6,cmsis下载器无法识别仿真器接口将接口port换成SW试试魔术棒-debug-setting烧录失败解决方案错误报告:Cannotresettarget.Shuttingdowndebugsession.FlashDownloadfailed-TargetDLLhasbeencancelled解决方案更改debug-setting内的设置如图,修改connect和reset,还不行的话可以试试其他选项。更改debug设置参考及其他解决方

Android map v2 : "Google Play services, which some of your applications rely on, is not supported by your device."

我有一个需要GooglePlay服务的应用程序,因为我使用的是Androidmapv2。我正在运行一些测试,其中一项测试需要将设备恢复出厂设置,然后尝试运行应用程序。我第一次这样做,没有连接wifi或任何互联网资源,map上显示的消息是:当我单击“确定”按钮时,我的应用程序崩溃了。日志:当我连接到互联网时,这条消息发生了变化,显示的按钮是“更新”,然后我只需点击一下,一切都按预期进行。我可以在Ok按钮上处理这个事件吗?有什么建议吗?谢谢! 最佳答案 就我而言,我创建了一个使用googleapi而不是android的模拟器。现在,消息

docker: Error response from daemon: could not select device driver with capabilities: [[gpu]]问题记录解决

具体参考:docker:Errorresponsefromdaemon:couldnotselectdevicedriverwithcapabilities:[[gpu]]问题记录解决_奶茶不加冰的博客-CSDN博客docker:Errorresponsefromdaemon:couldnotselectdevicedriver““withcapabilities:[[gpu]]问题解决_一个菜鸟的奋斗的博客-CSDN博客1、添加nvidia-docker的源curl-s-Lhttps://nvidia.github.io/nvidia-docker/gpgkey|\sudoapt-keyad

android - Device Admin API,如何成为设备拥有者?

我想使用DevicePolicyManager方法:setSecureSetting。此方法需要配置文件或设备所有者:CalledbyprofileordeviceownerstoupdateSettings.Securesettings.我的应用程序已激活设备管理,因为当我调用isAdminActive时它返回true。但是当我调用setSecureSetting时出现异常:E/DevicePolicyUtility(9901):java.lang.SecurityException:AdminComponentInfo{com.xxxx/com.xxxx.MyDeviceAdmin

android - 从 URL 获取图像时显示 java.net.UnknownHostException : Host is unresolved in android device?

publicclassFetchImageAppsActivityextendsActivity{/**Calledwhentheactivityisfirstcreated.*/publicstaticStringurlPath="http://farm1.static.flickr.com/150/399390737_7a3d508730_b.jpg";publicImageViewimageView;booleanusingProxy=true;publicStringproxyIP="A.B.C.D";publicintproxyPort=80;@Overridepublicv

android - ACTION_POWER_CONNECTED 的问题

我在我的应用程序中使用以下示例页面中的代码来监控设备何时连接/断开电源适配器:http://developer.android.com/training/monitoring-device-state/battery-monitoring.html所以我的list中有:我的类(class)是这样的:publicclassStatusChangeReceiverextendsBroadcastReceiver{@OverridepublicvoidonReceive(Contextcontext,Intentintent){SharedPreferencesprefs=Preferenc

android - 为什么安卓:uiOptions ="splitActionBarWhenNarrow" not working with device

我正在使用android:uiOptions="splitActionBarWhenNarrow"拆分菜单。它与模拟器4.03一起工作正常但不是真正的设备4.03。它是三星平板电脑 最佳答案 splitActionBarWhenNarrow,顾名思义,仅适用于手机等小型(窄)设备-在顶部和底部之间拆分控件。在平板电脑等宽设备上运行时不会拆分。引用http://developer.android.com/guide/topics/manifest/activity-element.html,搜索splitActionBarWhenNa

Android Geocoder.getLocationFromName() 抛出 IOException : Service not available on Device

这个问题在这里已经有了答案:WhyisAndroidGeocoderthrowinga"ServicenotAvailable"exception?(6个答案)关闭9年前。我在模拟器和我的手机(配备Android4.1的NexusS)上都使用了Geocoder.getLocationFromName()方法,但出现以下异常:java.io.IOException:ServicenotAvailable模拟器上出现了很多关于此的问题(example),其中大多数说是特定版本的模拟器有问题。但是,异常出现在我的AVD(2.3和4.1)和我的手机上。我的手机和AVD都有互联网连接。我的API