Hello!

Ok here is my problem.

I have one Activity (Activity1) containing a tabhost. In one of the
tabs I have a listActivity (Activity2)
Activity2 implements ListActivity  I want to call ( Activity2 )
thisMethodIWantToCall() from Activity1.

Activity1

Intent myHomeIntent = new Intent(this, Activity2.class);

mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("",
getResources().getDrawable(R.drawable.myhome)).setContent
(myHomeIntent));

Activity2
public class Home extends ListActivity{

private variables ...

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

         some code ...   //

public void thisMethodIWantToCall()
{
   updateMyListAcitivty();
}


If it would be simple I want to think it should work like this...

Intent myHomeIntent = new Intent(this, Activity2.class);

mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("",
getResources().getDrawable(R.drawable.myhome)).setContent
(myHomeIntent));

myHomeIntent.updateMyListActivity():

But I know that it dosnt work like that.



Thank you


 Martin Fors

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to