Hi all,
I played a bit with the press-it (pressy like) application (see https://play.google.com/store/apps/details?id=com.incrediapp.press.it.macro.creator.time.saver )
This little app allows for instance to light the flash after a sequence of 3 presses on the power button.
Turning the flash ON or taking a pictures works even with a password protected device.
I wondered how this could work and searched the forum on the way to intercept "power button" presses. I've seen several threads and get the feeling it is impossible to intercept power button presses.
Thus my question, is ther a way to detect a power button press event with B4A ? Could we develop a service running in background just counting the number of presses ? Would this service be active even when the device is password protected locked ?
thanks
Alain
I played a bit with the press-it (pressy like) application (see https://play.google.com/store/apps/details?id=com.incrediapp.press.it.macro.creator.time.saver )
This little app allows for instance to light the flash after a sequence of 3 presses on the power button.
Turning the flash ON or taking a pictures works even with a password protected device.
I wondered how this could work and searched the forum on the way to intercept "power button" presses. I've seen several threads and get the feeling it is impossible to intercept power button presses.
Thus my question, is ther a way to detect a power button press event with B4A ? Could we develop a service running in background just counting the number of presses ? Would this service be active even when the device is password protected locked ?
thanks
Alain