In my service I add a view to WindowManager with addView(). When I\'m ready to hide the view, I call removeView() using the View
WindowManager
addView()
removeView()
View
To check if view has been succesfully attached to Windows Manager, or is still attached, you can use view.isShown();.
view.isShown();