As I indicated in your StackOverflow question, doing this is not a
good idea. It may or may not work on every device. It may or may not
work in future versions of Android. I strongly encourage you to
redesign your application to leave the original status bar in place.

On Thu, Feb 17, 2011 at 10:33 AM, chrismanster <[email protected]> wrote:
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 3.1 Available!

-- 
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