Originally Posted by The Solutor
In short I use UDN w/o the xposed module, but I would like to use it just in landscape, so I ask for a setting to enable it just in portrait, just in landscape, always.
A tasker plugin to enable it on conditions or on app basis would be nice too.
Ok, I managed to get what I wanted
I installed UDN w/o its xposed plugin, instead I installed Hide Bottom Bar (*)
from the playstore, that can be easily enabled and disabled from tasker.
Then I managed to enable and disable UDN from Tasker
via two shell commands (**)
Silently enable UDN:
su -c am startservice -n com.mrbimc.udn/com.mrbimc.udn.MyService
Silently disable UDN:
su -c am force-stop com.mrbimc.udn
Then I made two task in Tasker
those are meant to hide the stock navbar bringing up UDN's one and viceversa
Thats all to do whatever one wants on conditions:
Personally i use UDN always in landscape, and with selected apps (browsers, navigators) when in portrait.
But this was not enough for me:
I also wanted to switch the two conditions easily directly from the navbars their self.
Unfortunately the UDN buttons can launch just apps, and not shortcuts/actions/whatever.
So i transformed my two tasker tasks in mini apps using Tasker Apps Factory
, then I used them as a custom actions on menu long press.
So a long press on stock navbar brings up UDN and full screen mode.
A long press on UDN's menu button, kills UDN and FS mode.
I spent a lot to have this solution working but finally I have a flexible solution (IMHO) way handier than any premade ones seen until today.
I hope this helps other people.
there are many alternatives to Hide Bottom Bar:
GMD Auto Hide Soft Keys
(it keeps the status bar visible, its own virtual bar can be disabled)
GMD gesture control
(it has the FS function embedded)
The FS Gravity box
function (it works only on post ICS roms)
The Secure settings
FS function (works on some roms)
And so on.
Most of them are usable via tasker but only as a toggle function, so they can lead to a condition where the desktop is extended but UDN is stopped or viceversa, so I preferred HBB which has the explicit ON/Off functions.
Notice that I used su -c
instead of using the plain commands and launching them via tasker's root function, because tasker, often, has problems to understand that the device is rooted, if a su helper other than Superuser is used.