Android - Notification bar height from a service -


The application I'm working on is a service that runs in the background in Android. The problem is that I need to set the height of the notification bar for some functionality of the service.

I find many solutions for this, for regular activities - a scene can determine its own within an activity without the height of the notification bar, its actual visualization size is its on-size playful phenomenon After checking with it, it has already been drawn. However, this is not applicable for any service that has no physical view.

I really appreciate any idea to get the size of the notification bar at the system level, perhaps?

Thanks a lot!

Vitaly

Say no activity appropriate for your service Use Size There is a possibility of changing the height of the status bar, or the size of the screen, while operating the service.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -