Thanks I got the required functionality from Music Player application :

<!--
This is the "current music playing" panel, which has special
launch behavior. We clear its task affinity, so it will not
be associated with the main media task and if launched
from a notification will not bring the rest of the media app
to the foreground. We make it singleTask so that when others
launch it (such as media) we will launch in to our own task.
We set clearTaskOnLaunch because the user
can go to a playlist from this activity, so if they later return
to it we want it back in its initial state. We exclude from
recents since this is accessible through a notification when
appropriate.
-->
−
<activity android:name="MediaPlaybackActivity"
android:theme="@android:style/Theme.NoTitleBar"
android:label="@string/mediaplaybacklabel" android:taskAffinity=""
android:launchMode="singleTask" android:clearTaskOnLaunch="true"
android:excludeFromRecents="true">



On Mon, Oct 5, 2009 at 7:34 PM, for android <forandr...@gmail.com> wrote:

> Here's my requirement:
>
> I need to start an Theme Dialog activity from a widget.From this widget I
> need to start another activity from another application and get the result
> from there to be used in the Theme Dialog activity.
>
> Now if I have the application in standard mode,then this activities becomes
> a part of my  activity task(which I donot want).I tried the following modes:
>
> singleInstance-- here the problem was that i could not get the result from
> another activity.
> singleTask   --- here the problem was that this became a part of my
> application activity stack.
>
> How do I solve this issue?What I need is that my dialog activity to be a
> different task and it should still be able to start its new activities to
> get results
> .
> Thanks
>
>
>
>
> >
>


-- 
Thanks and Regards
Gurudutt P.S.

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