Skip to content

Controlling hidebar using intents

ppareit edited this page Nov 24, 2012 · 2 revisions

Controlling HideBar using Intents

In your manifest, AndroidManifest.xml, add the use permission

<uses-permission android:name="hidebar.permission.CONTROL_SYSTEMBAR" />

To hide the systembar from within your application, write

context.sendBroadcast(new Intent(ACTION_SHOW_SYSTEMBAR));

To show the systembar from within your application, write

context.sendBroadcast(new Intent(ACTION_HIDE_SYSTEMBAR));

The constants "ACTION_SHOW_SYSTEMBAR" and "ACTION_HIDE_SYSTEMBAR" can be defined with

static final String ACTION_SHOW_SYSTEMBAR = "be.ppareit.hidebar.ACTION_SHOW_SYSTEMBAR";
static final String ACTION_HIDE_SYSTEMBAR = "be.ppareit.hidebar.ACTION_HIDE_SYSTEMBAR";
Clone this wiki locally