title: Accessiblity service doesn't see overlay
body: <p>So I am using <code>Accessiblity Service</code> to scan my phones screen to detect overlays and such. The problem I am having is that it doesn't find the view of the pop up, it always scans the text under the overlay, how can I make sure it only scans the current top overlay? So for example I have <code>testapp</code> and <code>testappone</code>, <code>testapp</code> is the current activity and <code>testappone</code> is the overlay, when the overlay pops up on top of <code>testapp</code> I don't see the data for <code>testappone</code> I see the data for <code>testapp</code> even though I can see everything on <code>testappone</code> above <code>testapp</code>.</p>
  
  <pre><code>@Override
  public void onAccessibilityEvent(AccessibilityEvent event)
  {
      final String appPackageName = event.getPackageName().toString();
  
      if (appPackageName.equals("testappone")){
          AccessibilityNodeInfo source = getRootInActiveWindow();
  
          processEvent(source);
      }
  }
  
  private void processEvent(AccessibilityNodeInfo source){
     StringBuilder sb = new StringBuilder();
     processSubEvent(source, 0, sb);
     String string = sb.toString();
  
     Log.e(TAG, "String " + string);
  }
  
  private void processSubEvent(final AccessibilityNodeInfo source, final int n, final StringBuilder sb){
  
     sb.append(tools.getText(source));
     sb.append("\n");
  
     int childCount = source.getChildCount();
     for (int i = 0; i &lt; childCount; i++)
     {
         AccessibilityNodeInfo child = source.getChild(i);
  
         if (child != null)
         {
             processSubEvent(child, n + 1, sb);
         }
  
       child.recycle();
     }
  }
  </code></pre>