title: How to send data back from Activity to AccessibilityService?
body: <p>I have a class that extends AccessibilityService and when there is a certain event starts an activity.</p>
  
  <p>The problem is that when the activity ends, it should send data back to 'AccessibilityService'. Does anyone have an idea on how to do that?</p>
  
  <p>Example:</p>
  
  <pre><code>public class MyAccessibilityService extends AccessibilityService {
  
      @Override
      public void onAccessibilityEvent(AccessibilityEvent event) {
  
          if (event.getEventType()==AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED){
                  Intent intent=new Intent(getApplicationContext(),DialogActivity.class);
                  intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  
                  startActivity(intent);
                  // String resul=set result When Activity is closed
          }
      }
  </code></pre>
  
  <p>Thanks in advance!</p>