When the device goes to sleep or when the screen is cleared, you can reactivate the screen by reading the Y value of the orientation sensor, such as the smartphone is vertical (80 ° to 100 ° for example)?
I specify that I know how to read and interpret the 3 values of the sensor ORIENTATION.
The smartphone is NOT rooted.
Thanks in advance.
Thanks Erel.
Already my app uses a service, launched with a StartService (Name).
I will examine the concept of "partial lock" and will see that it can be exploited for me.