Hi again,

And what about if I call finish();
Is the Activity really destroyed even if I use singleTask ?

Thanks.

On Mar 17, 7:59 pm, Derek <[email protected]> wrote:
> Do I need both addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); and
> android:launchMode="singleTask" in AndroidManifest.xml ?
>
> On Mar 17, 3:04 pm, dillirao malipeddi <[email protected]>
> wrote:
>
> > when you create a new intent
> > set flag as
>
> > your_intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
>
> >  startActivity(your_intent);
>
> > On Tue, Mar 17, 2009 at 2:56 PM, Derek <[email protected]> wrote:
>
> > > Hi,
>
> > > Is it possible to re-use all the instances of Activities and Services
> > > when an application is launchedtwice. For instance:
> > > 1/ I start my application APP1. Some activities are launched and a
> > > service is started.
> > > 2/ I click "Home" device button
> > > 3/ I can see the icon the launch again my application APP1
> > > 4/ I click on it and the APP1 is launchedtwice
>
> > > I would like to re-use the existing the instances of Activities and
> > > Services from the first launch.
> > > I guess it is related to "SingleTop" or "SingleTask" but it doesn't
> > > seem to work.
>
> > > Any suggestion ?
>
> > --
> > Dilli Rao. M
>
>
--~--~---------~--~----~------------~-------~--~----~
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