title: Dismiss non-application Window when Home button pressed
body: <p>I have a non-application window (i.e. a window with no activity context, that appears over other apps).  This window is technically a View which has been added using <code>WindowManager.addView()</code> and <code>TYPE_SYSTEM_ERROR</code>.</p>
  
  <p>I would like to remove this window when the Home button is pressed but it seems impossible to intercept the Home button press.</p>
  
  <p>Is there any way to do this?</p>
  
  <p>EDIT: My app does not have an <code>Activity</code> so cannot use any methods on the Activity class.</p>