App Inventor Extensions

Flashlight Extension

See the App Inventor Extensions document about how to use an App Inventor Extension.

For questions about this extension or bug reports please start a new thread in the App Inventor Extensions forum. Thank you.

For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.

Apr 29th, 2016: Initial version 1.

Aug 11th, 2016: Version 1a: avoid DX execution failed error: build each extension separately


Extension to turn on/off the flashlight.
Required permission: android.permission.CAMERA, android.permission.FLASHLIGHT
Minimum Android API Level for this extension is 11, which is Android 3.0 (Honeycomb)
Thank you pixabay/OpenClipartVectors for the on/off image.


Returns whether the device has flash.


Turn on the flashlight.

Turn off the flashlight.

Example Use

For questions about App Inventor,
please ask in the App Inventor forum.Thank you.

Terms and Conditions


Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!

Donation amount:

or donate some mBTC to Bitcoin Address:

Thank you! Taifun

Download TaifunFlashlight extension (aix file)
Download Flashlight test app (aia file)
Back to top of page ...

Creative Commons License
This work by Pura Vida Apps is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.

Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact