use*_*701 13 android android-emulator genymotion
如何使用Genymotion重启(BOOT COMPLETED)后测试我的应用程序我使用nexus 4作为设备
<receiver android:name="com.template.SampleBootReceiver"
android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
Run Code Online (Sandbox Code Playgroud)
eya*_*zmy 40
您可以使用命令行adb reboot.它应该重启你的设备.
要使用adb,您需要位于adb binary的文件夹中.ie,<android SDK>/platform-tools/或者<genymotion folder>/tools/如果没有安装android SDK.您还可以将这些文件夹添加到您的路径中以从任何位置访问它.
use*_*585 18
在mac上为我工作:
Genymotion模拟器重启......
使用@ eyal-lezmy的答案和网络上的其他内容找到了解决方案.如果您有多个设备在运行,则可以通过这种方式重新启动特定设备
从<genymotion-installer-path>发布开始
genymotion-shell
在shell中运行devices,记下要重启和退出的设备的IP地址和端口.
从<android-sdk-folder>/platform-tools跑步
adb -s <device-ip>:<device-port> reboot
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
64286 次 |
| 最近记录: |