简体   繁体   中英

Emulate led flashlight in android emulator?

Is there a way to emulate led flashlight in android emulator? I've already tried to see what options are available when setting up the AVD but there was only an emulator for camera!

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. You need a device if you want to see the led actually working.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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