Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Question regarding sensors and java implementation

OP alex-p690

16th May 2014, 10:46 PM   |  #1  
OP Member
Flag Pitesti
Thanks Meter: 10
 
78 posts
Join Date:Joined: Jun 2012
More
Hi guys,
I need my app to check if the phone face is covered when the screen unlocks.
I've acomplished this by creating a service to get datas from the proximity sensor. The problem is that it isn't energy efficient as the proximity sensor is checking non-stop until the screen is turned on.
Is there any better way to accomplish this or other sensor to use just to verify if the phone is covered by the moment when the screen is turned on?
Thanks!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes