flashlight in a service

salmander

Active Member
Licensed User
Longtime User
Hello All,

I am trying to use flashlight in a service. I was searching b4a forum and the only library I found to use the Flashlight is the Advanced Camera Library (ACL). But, ACL is an activity object and can't be declared in a service. What shall I do?

I know services can use flashlight, as there are apps which uses flashlight as notifications e.g: on incoming sms etc.

Please help.
 

salmander

Active Member
Licensed User
Longtime User
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?
 
Upvote 0
Top