TextView setText from another class
<p>My problem is that i've a tabhost with two tabs.
The first is a listview and the second only have two textviews.</p>

<p>What i want is when i click on an item in the listview on tab one, the array position id (int) should be sent to tab/class two, where there is an array who fetches a text by the position id that was sent.</p>

<p>The switching of tabs is done, but i fail everytime i try to send the position-id.</p>

<p>This is how i send it:</p>

<p>TAB ONE:</p>

<pre><code>//This function is called when i click a listitem
public void setDetails(String Text, long arr_id){
        Detail detail = new Detail();
        detail.setDetail(); // right now i don't send the parameters because it wont even work with or without it.
    }
</code></pre>

<p>TAB TWO:</p>

<pre><code>TextView descr;
TextView title;


public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.detail);

    descr = (TextView)findViewById(R.id.desc);
    title = (TextView)findViewById(R.id.title);

}

public void setDetailText(String Text){
    descr.setText(Text);
}
public void setDetailTitle(String Text){
    title.setText(Text);
}

public void setDetail(){
    this.setDetailTitle("example text");
    this.setDetailText("example text2");
}
</code></pre>

<p>I want to set the text on tab two BEFORE it switch to tab two.
This works if i use SetDetail() and setDetailTitle() in the same tab/class, but not in another.</p>

<p>I've googled my ass off, please help me </p>
