I'm going to precise my question :

In one of the tab, I've a ListActivity.
I would like to retrieve data from ListActivity from the TabActivity.
Is it possible?

Best regards
Tom

On 15 juin, 17:35, Tom <[email protected]> wrote:
> Hi,
>
> I created a TabActivity with contains 3 tabs. Each tab's content sets
> different Intents. All these Intents extended ListActivity.
>
> Is it possible to retrieve informations from these three activities in
> the main TabActivity?
>
> Here are some of my codes :
>
> public class Temp extends TabActivity{
>
>         �...@override
>             protected void onCreate(Bundle savedInstanceState) {
>                 super.onCreate(savedInstanceState);
>                 final TabHost tabHost =  getTabHost();
>
>                 // First tab
>                 TabHost.TabSpec userTab = tabHost.newTabSpec();
>                 secTab.setIndicator(this.getString("Activity2"));
>                 secTab.setContent(new Intent(this,Activity2.class));
>
>                 // Second tab
>                 TabHost.TabSpec secTab = tabHost.newTabSpec();
>                 secTab.setIndicator(this.getString("Activity2"));
>                 secTab.setContent(new Intent(this,Activity2.class));
>
>                 // Third tab
>                 TabHost.TabSpec thirdTab = tabHost.newTabSpec();
>                 thirdTab.setIndicator(this.getString("Activity3"));
>                 thirdTab.setContent(new Intent(this,Activity3.class));
>         }
>
> }
>
> Precisely, I would like to get datas from "Activity1", "Activity2" and
> "Activity3".
>
> Thanks
> Best regards
> Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to