• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help with profile

Hello guys

My nexus 4 screen has broken and i changed it.
After this, my proximity sensor is always activated.
Already assembled and disasembled several times and apparently is really dead. Always when i enter in call mode my screen goes off.

So i need to create a "proximity sensor" with tasker.

First I need is to deactivate my proximity sensor.
Then when i enter in call mode (making a call or receiving a call)
- If phone is in "up position", turn off the screen
- If phone gets out of "up position", turn on the screen

Can I do that ? I just dont know what i have to do.

Thanks in advance
 
New profile
2 Contexts:
1: State>Sensor>Orientation---Is: Standing Up
2: State>Phone>Call---Type: Any
1 Action:
Either A) Display>System Lock
or B) Plugins>Secure Settings>Lock Device


One more profile
2 Contexts:
1: State>Sensor>Orientation---Is: Standing Up --- Inverted:Checked
2: Phone>Call---Type: Any
1 Action:
Either A)Display>Turn On
or B)Plugins>Secure Settings>Wake Device
 
  • Like
Reactions: D-U-R-X
Upvote 0
New profile
2 Contexts:
1: State>Sensor>Orientation---Is: Standing Up
2: State>Phone>Call---Type: Any
1 Action:
Either A) Display>System Lock
or B) Plugins>Secure Settings>Lock Device


One more profile
2 Contexts:
1: State>Sensor>Orientation---Is: Standing Up --- Inverted:Checked
2: Phone>Call---Type: Any
1 Action:
Either A)Display>Turn On
or B)Plugins>Secure Settings>Wake Device


Or you could exit task the action the second profile, into the first profile. As both contexts have to be met to activate the task, as soon as call type:any returns the hang up of the call, the exit task should kick in.


2 Contexts:
1: State>Sensor>Orientation---Is: Standing Up
2: State>Phone>Call---Type: Any
1 Action:
Either A) Display>System Lock
or B) Plugins>Secure Settings>Lock Device

Exit task:
1 Action:
Either A)Display>Turn On
or B)Plugins>Secure Settings>Wake Device[/QUOTE]
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones