A simple but completed example for Android flashlight control.