There is deliberately no API to do this. You can either let your content be resized to account for it in a full-screen window, or let a dialog be positioned by the window manager to account for it. The status bar is not guaranteed to appear at a certain location of the screen, at only one location, etc.
On Tue, Jun 15, 2010 at 5:48 AM, Vitaliy <[email protected]> wrote: > Hi, > > The application I'm working on is a service which runs in the > background. > The problem is that I need to determine the height of the notification > bar for some functionality of the service. > > I found a number of solutions for this, for regular activities - a > view inside an activity can determine its own height without the > notification bar, based on for example checking its actual view size > from its onSizeChanged event, after it is already drawn. However, this > is not applicable to a service which has no physical view drawn, > nor directly related applications. > > I would really appreciate any ideas on getting the size of the > notification bar! > Perhaps at a system level API? > > Thanks so much! > > Vitaliy > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

