Found this code.  Looks like you have to use reflection.

try {
   Object service = getSystemService ("statusbar");
   Class <?> statusBarManager = Class.forName
("android.app.StatusBarManager");
   Method expand = statusBarManager.getMethod ("expand");
   expand.invoke (service);
} catch (Exception e) {
   Toast.makeText(getApplicationContext(), e.getMessage(),
Toast.LENGTH_LONG).show();
}

It also requires this permission:

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

On Feb 17, 8:01 am, TreKing <[email protected]> wrote:
> On Thu, Feb 17, 2011 at 7:48 AM, chrismanster <[email protected]>wrote:
>
> > I know that there is a way.  I was wondering if anyone knew how so I don't
> > have to dig through the source and "rip" it. (hence the /how in the
> > question).
>
> Oh, sorry - "dig through the source and rip it" *was* the "how" in my mind.
>
> At least you have a plan B :-)
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to