statusbar - Android: how to detect that status bar opened -


i writing app needs know when status bar opened, , accordingly (for example, fire intent). searched web exstensively way detect when status bar opened didn't find useful.

i had 1 idea, when noticed when status bar opens, sensormanager unregister orientation listener:

unregisterlistener:: listener= android.view.orientationeventlistener$sensoreventlistenerimpl@427b63c0

and when statusbar closes, sensormanager register listener:

registerlistener :: handle = 0 name= lsm330dlc 3-axis accelerometer delay= 200000 listener= android.view.orientationeventlistener$sensoreventlistenerimpl@427b63c0

so went on source code , tried find call made, , object call it, because if object can detect opening of statusbar can too, didnt found correct place call.

i glad if can give me full answer on how detect when status bar being opened, satisfied in knowing object tells sensormanager make register/unregister operations.

thanks in advance!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -