简体   繁体   English

在Android模拟器中模拟led手电筒?

[英]Emulate led flashlight in android emulator?

Is there a way to emulate led flashlight in android emulator? 有没有办法在Android模拟器中模拟led手电筒? I've already tried to see what options are available when setting up the AVD but there was only an emulator for camera! 我已经尝试过在设置AVD时可以看到哪些选项可用但是只有一个用于相机的模拟器!

The emulator can't do that. 模拟器不能这样做。 You need a device. 你需要一个设备。 It's also good to develop on a device since the emulator can sometimes behave differently. 在设备上进行开发也很好,因为仿真器有时会表现不同。

If you just want to test different states of the led, then you can create a small view and change the color of that. 如果您只想测试led的不同状态,则可以创建一个小视图并更改其颜色。 You need a device if you want to see the led actually working. 如果你想看到led实际工作,你需要一个设备。

You need an actual device with flashlight to test your flashlight. 您需要一个带手电筒的实际设备来测试您的手电筒。 There is no way to test flashlight in emulator until emulator provides you with led service like in 'geneymotion' you can use your laptops camera as your emulator's camera. 在仿真器提供led服务之前,无法在模拟器中测试手电筒,如'geneymotion',您可以将笔记本电脑相机用作模拟器的相机。

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

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