Thanks for the answer.

No problem for putting data into bundle property.
But, I don't know how retrieve that property when I do getParent in my
tab1?
Can you explain me?
Thanks

Tom

On 7 août, 10:10, Tinuz <[email protected]> wrote:
> What i did is the following:
> You have tab1 and tab2 which reside in a tab activity.
> In tab1 runs activity1 and in tab2 runs activity2.
>
> When you finish your operation in tab1, you retreive the parent
> activity which is the tab activity.
> In this tab activity you have a Bundle property. You put the data
> which you want tosharein the Bundle property.
> Now when  you goto tab2 with activity2, you also retreive the parent
> activity (tab activity) and read out the Bundle property.
>
> Works for me!
>
> When
>
> On Jun 16, 12:11 pm, Tom <[email protected]> wrote:
>
> > 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 getdatasfrom "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