Sorry a task can't return a result, simply because it does not make sense --
for example the user can move out of the other task and back to yours
without finishing it to return a result, or they can leave and go to another
app that then launches the same task for a result and you now have that one
activity instance trying to present the user with a UI to deliver a result
to two different activities.
The solution is probably to just not use singleTask or singleInstance.  I
think 90% of the time when people think they want to use these, they really
don't.

On Thu, Oct 1, 2009 at 11:20 PM, Amitkeerti <[email protected]> wrote:

>
> hi,
>
> Lets suppose that Activity 1 calls startActivtyForResult with an
> intent which starts Activity 2.
>
> Now lets suppose that in the AndroidManifest, for Activity 2 we have :
>
> android:launchMode="singleInstance"
> or
> android:launchMode="singleTask"
>
> Now the Activity 2 gets launched in a separate task and the
> onActivityResult is cancelled for Activity1.
>
> So my question is:
> 1. Is there a way in which Activity 2 can send information back to
> activity 1?
>
> 2. And in general, Is there a way in which inter task communication is
> possible?
>
>
> Thanks
> Amitkeerti
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [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