I found the following piece of code from the adw launcher:
Object service = launcher.getSystemService("statusbar");
if (service != null) {
Method expand = service.getClass().getMethod("expand");
expand.invoke(service);
}
Which throws a SecurityException: StatusBarManagerService: Neither user 123456 nor current process has android.permission.EXPAND_STATUS_BAR
So I added
<uses-permission android:name="android.permission.EXPAND_STATUS_BAR" />
to my application manifest.xml, But still no luck
and add this to manifest: