title: Is it possible to send an event from a thread to an activity?
body: <p>If I want to send an event, e.g. OnClick, to an activity from a thread? Thanks.</p>
  
  <p>The expected work flow is below:</p>
  
  <pre><code>public class HelloAndroid extends Activity {
  
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);
         Crate threadA
         Start threadA
     }
  
     public void OnSomeEvent() {
         do something that changes the views in this activity;
     }
  
     private class ThreadA extends Thread {
         public void run() {
             do something ...
  
             Send Some Event to Activity HelloAndroid.
         }
     }
  </code></pre>