Extension to detect power button

I think it is rather easier to have a button on the screen being pressed rather than the power button. It is meant to turn the screen on/off, not for extra widgets.

Ermm...I see. Thank you guys for the explanation and help. I will change to another function.

Is it possible to make a phone call when the screen is lock by shaking the phone?

This works with the Extension Template, but I would also like to know how to do this with e.g. the NiotronIDE. Maybe @vknow360 knows.

1 Like

You can add them to main class as inner classes.
For example, you can look at CustomWebview source.

5 Likes