How to show status message on TextView in Main Activity?
<p>I am newbie in android, in my android app, a main <code>Activity</code> class, which contains a <code>TextView</code> for displaying various status message from other classes.  I want to update <code>TextView</code> of main <code>Activity</code> with status values from other classes.  There is no direct connection between main activity class and other class. Is it possible in android ? if yes i am not aware to do it.  Kindly provide solution to do it</p>

<p>code snippets</p>

<pre><code>//main activity
public class MainMenu extends Activity {

    static String status = "Hello Friends";

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    TextView tv = (TextView)findViewById(R.id.mytext);
    tv.setText(status);

        MyOtherClass myclass = new MyOtherClass();
        myclass.connect();
}
</code></pre>

<p>Other class is not an activity class</p>

<pre><code> // Other class
 public class MyOtherClass {
  public MyOtherClass(){
  }

   public void connect(){
    String strIP = Mtx.confRead("IPAddress");
    String strPort = Mtx.confRead("Port");

            String msg = "Connecting...";
            // i want to show value of msg varible in Textview of main activity from here
   }
</code></pre>

<p>thanking you</p>
