简体   繁体   English

Android Wear模拟器和环境模式

[英]Android Wear Emulator and ambient mode

How can I test ambient mode in Android Wear emulator? 如何在Android Wear模拟器中测试环境模式? I need to see how does my app render on different watches while in ambient mode. 我需要看看我的应用程序在环境模式下如何在不同的手表上呈现。 Seems ambient mode is different on Moto 360 and Sony Smartwatch 3. 在Moto 360和Sony Smartwatch 3上,环境模式似乎不同。

To test Ambient Mode in an emulator, you need to do the following: 要在模拟器中测试环境模式,您需要执行以下操作:

  1. In the Emulator, Go to settings and Turn ON "Always-on Screen: ON". 在仿真器中,转到设置并打开“永远在线屏幕:开”。
  2. While emulator window is active Press "F7" (F7 emulates the power button) then press the power button to turn on ambient mode. 模拟器窗口激活时按“F7”(F7模拟电源按钮),然后按电源按钮打开环境模式。

Hope this helps. 希望这可以帮助。

On recent Wear emulators you can just press the power button in the associated control panel. 在最近的Wear仿真器上,您只需按下相关控制面板中的电源按钮即可。 The power button within the emulator frame acts as a press on the main button, eg opening the list of apps. 仿真器框架内的电源按钮用作按下主按钮,例如打开应用程序列表。

工具栏中带有电源按钮的仿真器的屏幕截图

Not your main question but hopefully this helps you in regards to the differences you're seeing between the Moto 360 and SmartWatch 3 ambient modes: 不是您的主要问题,但希望这可以帮助您了解您在Moto 360和SmartWatch 3环境模式之间看到的差异:

I believe what you're referring to is ambient mode versus low-bit ambient mode. 我相信你所指的是环境模式与低位环境模式。 Google covers some of it in their developer documentation but it doesn't seem to be mentioned anywhere else. 谷歌在他们的开发者文档中介绍了其中的一部分,但似乎在其他任何地方都没有提及。 I did a huge write-up for the community based on my own research since I was frustrated with the lack of info (it's mostly written from a consumer perspective though): 基于我自己的研究,我为社区做了大量的报道,因为我对缺乏信息感到沮丧(尽管这主要是从消费者的角度编写的):

http://www.reddit.com/r/AndroidWear/comments/2qb3ia/clarifying_ambient_modes_everything_you_could/ http://www.reddit.com/r/AndroidWear/comments/2qb3ia/clarifying_ambient_modes_everything_you_could/

The latest Wear emulator lets you click in the top of the emulator window to toggle between full power and ambient modes (the shaded section in the screenshot). 最新的Wear模拟器允许您单击模拟器窗口的顶部以在全功率和环境模式之间切换(屏幕截图中的阴影部分)。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM