How to call Activity class method from another Activity classs
<p>My MainActivity class is:</p>

<pre><code>@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    UserInterface_Main  UIMain = new UserInterface_Main();
    setContentView(R.layout.activity_main);
    UIMain.ExpendableListView();
}   
</code></pre>

<p>The another Activity class is:</p>

<pre><code>public class UserInterface_Main extends Activity{

ExpandableListView exv;

public void ExpendableListView()
{

    Context context = getApplicationContext();
    exv=(ExpandableListView)findViewById(R.id.elv1);
    exv.setAdapter(new MAdapter(context));
}
</code></pre>

<p>Now tell me how to call <code>ExpendableListView()</code> method from <code>MainActivity</code> class.</p>
