Hi Pierre Hébert, could you add a permission package with android.permission.STATUS_BAR
Hi Pierre Hébert, could you add a permission package with android.permission.STATUS_BAR ? (I’m not root so I can’t use Lukas’s app unfortunately)
I’m testing some things, and I need that permission.
What I found so far is this (important! It won’t probably work on most devices)
Expand notification tray:
var sbservice = LL.getContext().getSystemService( “statusbar” );
sbservice.expandNotificationsPanel();
Expand quick settings:
var sbservice = LL.getContext().getSystemService( “statusbar” );
sbservice.expandSettingsPanel();
Hide clock (needs the permission, not sure if this work):
var sbservice = LL.getContext().getSystemService( “statusbar” );
sbservice.disable(sbservice.DISABLE_CLOCK);
]]>« How can I create a folder with most used apps in main desktop? (Previous Post)
(Next Post) Hack for closing all folders on launching an app »
< ![CDATA[
Seems that permission is only for system apps…ouch
]]>
< ![CDATA[
These non public APIs have changed over time. LL requests for android.permission.EXPAND_STATUS_BAR but I am not sure it is granted on all versions. Before API 17 “expandNotificationsPanel” was simply “expand”
]]>
< ![CDATA[
First and second works for me!!!
]]>