Thanks Erel.
What I am trying to achieve is when an intent of incoming call is received, the flashlight will start blinking, thus, using flashlight as a notification light. So if I use an activity for the flash in torch mode, wouldn't the activity be in onPause state when the phone is ringing?