[solved] not working: Screen Orientation (MacroDroid 5.30.7)

HCC

Member
tested on Nokia 6.1 (Android 12) and
Samsung Galaxy A5 (2016), with Android 7.0
MacroDroid Version: 5.30.7

Hi,
I tried the macro below on a Samsung smartphone and Nokia smartphone.
No matter in which orientation I hold the smartphone MacroDroid it is always
showing the same "Device Orientation" when pressing the [Vol+] button:

Device Orientation "is Portrait" = True (always True)
Device Orientation "is Landscape" = False (always False)


Is this a bug?
 

Attachments

  • no-working-screenOrientation.jpg
    no-working-screenOrientation.jpg
    59.3 KB · Views: 14

Endercraft

Moderator (& bug finder :D)
tested on Nokia 6.1 (Android 12) and
Samsung Galaxy A5 (2016), with Android 7.0
MacroDroid Version: 5.30.7

Hi,
I tried the macro below on a Samsung smartphone and Nokia smartphone.
No matter in which orientation I hold the smartphone MacroDroid it is always
showing the same "Device Orientation" when pressing the [Vol+] button:

Device Orientation "is Portrait" = True (always True)
Device Orientation "is Landscape" = False (always False)


Is this a bug?
To clarify this isn't the device orientation that you hold in it's the screen orientation of the display. For example, landscape is when you play a YouTube video in fullscreen (or default orientation of most tablets, as portrait is the default orientation for most phones). If you want to use the position in which you hold the device, use the device facing constraint (what you want to achieve is vertical upright for portrait and sideways left/right for landscape).
 

HCC

Member
Ok, I changed the Conditions to . . .

1) Actions\Add Actions\Conditions Loops\If clause\Add Condition\Sensors\Device Facing\Vertical Upright
2) Actions\Add Actions\Conditions Loops\If clause\Add Condition\Sensors\Device Facing\Sideways Left
3) Actions\Add Actions\Conditions Loops\If clause\Add Condition\Sensors\Device Facing\Sideways Right

1) is the substitute for [Portrait]
and
2) + 3) is the substitute for [Landscape]

-Now it works. -Thanks Endercraft.
 
Top