【问题标题】:Simulate the connect and disconnect of the charging cable on the Android emulator在安卓模拟器上模拟充电线的连接和断开
【发布时间】:2015-12-29 13:58:53
【问题描述】:

如何在安卓模拟器上模拟充电线的连接和断开?

【问题讨论】:

  • 我也有同样的问题,因为在调试时您无法断开电缆。这意味着您无法调试操作
  • 您找到至少一种断开连接的方法了吗?
  • 抱歉没有看到你在使用模拟器

标签: android android-emulator


【解决方案1】:

借助 Android Studio 2.0 中引入的新模拟器,您可以在模拟器扩展控件上轻松切换连接状态。

【讨论】:

    【解决方案2】:

    发件人:http://developer.android.com/tools/help/emulator.html#power

    命令行调用:

    telnet localhost 5554
    

    然后:

      power ac off
      power ac on
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-09
      • 2011-04-04
      • 1970-01-01
      • 2023-03-07
      • 2011-08-26
      • 2021-07-08
      • 1970-01-01
      相关资源
      最近更新 更多