Force Landscape mode for a certain app

2,196 views
Skip to first unread message

Pgr

unread,
Oct 25, 2012, 8:23:20 AM10/25/12
to tas...@googlegroups.com
Hi,

sorry if this is a very obvious question, but I think I'm missing something.

I want to tell Tasker to put my phone in landscape mode whenever I'm in Firefox.

The context is easy: application, Firefox.

But the only Action I can find lets me turn off automatic Display Rotation, it doesn't let me specify which orientation I want, regardless of phone position.

How can I achieve this?

Thanks in advance.

Richard Davis

unread,
Oct 25, 2012, 9:12:47 AM10/25/12
to tas...@googlegroups.com

There are a few plug ins available on the market.. search this group for some.  I think one is called rotate..

Rich

Pgr

unread,
Oct 25, 2012, 10:36:16 AM10/25/12
to tas...@googlegroups.com
Hhmm... funny this should require a plugin, it seems like a basic setting on Android phones.

Anyway: I searched the Market and there were a few paid apps for this. Then I found Rotation Locker by madmack which is free and includes a Tasker plugin.

I was able to get what I want by setting it to landscape (checking Rotation Locker background service) when Firefox opens, then use a Tasker Exit task to set rotation to auto (and disable the service).

It feels a bit sluggish though, I don't know if that is caused by this app, Firefox, or any of the rest of the stuff running on my phone...

Thank you for your help!

Pent

unread,
Oct 25, 2012, 12:58:07 PM10/25/12
to Tasker
> Hhmm... funny this should require a plugin, it seems like a basic setting
> on Android phones.

It is a basic setting. Apps can set it easily for themselves. But apps
in Android run in a secure box and Android is reluctant to let other
apps interfere with what they are doing and requesting themselves.
Hence no API for that.

Pent

Pgr

unread,
Oct 26, 2012, 9:57:22 AM10/26/12
to tas...@googlegroups.com

Thanks for the clarification. But then I wonder how that Rotation Locker app does it...?

Pgr

Pent

unread,
Oct 26, 2012, 10:03:27 AM10/26/12
to Tasker
> Thanks for the clarification. But then I wonder how that Rotation Locker
> app does it...?

They have found a workaround somewhere. Maybe an unpublished,
undocumented function or similar, or manipulating Android files from
linux.

Pent

Aviram Moran

unread,
Dec 12, 2013, 5:53:46 PM12/12/13
to tas...@googlegroups.com
Prg,
Thanks for this one. like you I was surprised to find that there was no option to set orientation to a give state.
I used your metod of 3rd party plug in. I am also surprised that this is not an option in tasker and even more suprized by the reason given by Pent.
At the end of the day, as long as there is a way, I'm happy, but I think this could have been refereed to somewhere other then in a post. It took me some looking before I found this post and this method.

AB

unread,
Oct 1, 2016, 7:37:45 PM10/1/16
to Tasker
First off there are some native android settings one of which is  android:screenOrientation that would be setup using an activity block however I am not sure if tasker would or could access it via Java code.

That being said there are however some settings and options in Tasker and Autoinput (a plugin for tasker) that you could use instead for example the Orientation can actually be saved in a variable which can then be accessed to determine if auto rotate could be turned off. I have attached a screenshot of what I have currently working with my context set to Adobe Acrobat.


Hope that helps I know this is an old thread but maybe someone else could benefit from this :)
tasker-orientation.jpg
Reply all
Reply to author
Forward
0 new messages