Fact: When I get a call and phone remains in my pocket, sometimes (basically when I walk), call is automatically picked up. Actually screen is too sensitive and jeans are tight enough to touch while walking
I need: I want to lock the screen when phone will remain in pocket (can detect using proximity sensor) and have a call (can detect using phone event listener)
What I did: I created an app which is perfectly detecting proximity, incoming call and lock screen using device administrator library.
What's happening: Locking is always working except when using in incoming call listener.
Any idea if (and how) I can accomplish my task in this situation.
I need: I want to lock the screen when phone will remain in pocket (can detect using proximity sensor) and have a call (can detect using phone event listener)
What I did: I created an app which is perfectly detecting proximity, incoming call and lock screen using device administrator library.
What's happening: Locking is always working except when using in incoming call listener.
Any idea if (and how) I can accomplish my task in this situation.