title: Android make callback to an Activity from java class
body: <p>How can i make a callback to an Activity form a Java Class?</p>
  
  <p>Example:</p>
  
  <pre><code>    public class TestClass{
      String text = "Test";
      public TestClass(Context context){
              startActivity(new Intent(context, SomeActivity.class));
      }
  
      private void sendToSomeActivity(){
        //Call some method of SomeActivity and pas text as string
      }
  
     }
  </code></pre>
  
  <p>When <code>sendToSomeActivity()</code> is called, i want to make a callback to the already started <code>SomeActivity</code> and pass some text to the Activity. In <code>SomeActivity</code> i want to use the text. </p>
  
  <p>Note: The TestClass object that i want to use is already created in another class. </p>
  
  <p>How can this be done?</p>