[android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread chrismanster
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). On Feb 17, 7:31 am, TreKing treking...@gmail.com wrote: On Wed, Feb 16, 2011 at 4:28 PM, chrismanster chrismans...@gmail.comwrote: Is there a

Re: [android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread TreKing
On Thu, Feb 17, 2011 at 7:48 AM, chrismanster chrismans...@gmail.comwrote: 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

[android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread chrismanster
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) {

Re: [android-developers] Re: Open Notification Bar Programmatically

2011-02-17 Thread Mark Murphy
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