Android - Notification bar height from a service
Posted
by Vitaliy
on Stack Overflow
See other posts from Stack Overflow
or by Vitaliy
Published on 2010-06-15T11:07:24Z
Indexed on
2010/06/15
13:12 UTC
Read the original article
Hit count: 359
android
Hi,
The application I'm working on is a service which runs in the background in android. 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 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.
I would really appreciate any ideas on getting the size of the notification bar at a system level, perhaps?
Thanks so much!
Vitaliy
© Stack Overflow or respective owner