Hi Dianne can you clarify your statement a little bit?  I have a
TabActivity with 4 tabs and one of those, I call setResult and call
finish().  The activity closes and returns to the activity which
called the TabActivity but I'm losing my result (it always shows up as
RESULT_CANCELED).

I saw looking through the API docs that it looks like TabActivity
spins up child activities for each tab.  So it looks like my activity
in the tab should return back to the TabActivity via the
finishFromChild() method but how do I make sure the result I had set
on that activity is propagated back from the TabActivity?

Thanks,
Derek

On Apr 6, 12:05 pm, Dianne Hackborn <hack...@android.com> wrote:
> Tabs can't receive results, only the container (if that is what you are
> asking, it is really not clear).
>
>
>
> On Mon, Apr 6, 2009 at 9:19 AM, zeeshan <genx...@gmail.com> wrote:
>
> > any solution?
>
> > On Apr 6, 10:44 am, zeeshan <genx...@gmail.com> wrote:
> > > Hi Experts,
>
> > > i need to start startActivityForResult on a tab click,
>
> > > here is my activity senario:
>
> > > Activity A  calling startActivityForResult -> B (tab activity)
> > > startActivityForResult -> C onResult -> A
>
> > > -> D onResult -> A
>
> > > tabHost.addTab(tabHost.newTabSpec("Search")
> > >                 .setIndicator("",getResources().getDrawable
> > > (R.drawable.search_icon))
> > >                 .setContent(new Intent(this, MyClass.class)));
>
> > > how can i call the above MyClass as startActivityForResult ?
>
> > > also can i call any function on tab click?
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
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