You see the tasks of the most recent activities. If you select one and the
attached app and process is still running it will be brought in the
foreground, if not it will be started first and then brought into the
foreground.
That's what I meant with "Don't worry about it. Android OS manages that."

On Tue, May 26, 2009 at 5:35 PM, Sujay Krishna Suresh <
[email protected]> wrote:

>
> hmm so wats the no of apps that are shown??? i get varyin no based on the
> currently runnin apps... not basd on recently used apps...
>
> On Tue, May 26, 2009 at 8:48 PM, Urs Grob <[email protected]> wrote:
>
>>
>> Longpress in home only shows the last accessed apps, not the currently
>> running apps.
>>
>> -- Urs
>>
>> On Tue, May 26, 2009 at 5:13 PM, Sujay Krishna Suresh
>> <[email protected]> wrote:
>> > i tried that out... ddms says that the process died...
>> > but when i long press the home button to see the running apps, i see
>> mine as
>> > well...
>> > then y does ddms say that the process was killed???
>> > Is it a bug that a dead process still gets displayed along with other
>> > running apps???
>> > can any one temme y this is happening???
>> > On Tue, May 26, 2009 at 8:35 PM, Mariano Kamp <[email protected]>
>> > wrote:
>> >>
>> >> I never saw a need for that and don't know what would happen. Try it
>> out.
>> >> My guess would be, that you can kill the processes launched by your
>> user
>> >> id.
>> >>
>> >> On Tue, May 26, 2009 at 4:41 PM, Sujay Krishna Suresh
>> >> <[email protected]> wrote:
>> >>>
>> >>> thanks.... but if thats the case, why does the sdk provide
>> >>> Process.killProcess(Process.myPid())???
>> >>> & wat does android actually do when i call this method as above???
>> >>> On Tue, May 26, 2009 at 7:51 PM, Mariano Kamp <[email protected]
>> >
>> >>> wrote:
>> >>>>
>> >>>> In short: Don't worry.
>> >>>>
>> >>>> A bit longer: Android manages the apps' states.
>> >>>> The user keeps on doing things, launching tasks, firing intents etc.
>> and
>> >>>> when Android OS doesn't have enough memory left it kills of apps that
>> are in
>> >>>> memory, but don't seem that important anymore, e.g. because the UI is
>> not
>> >>>> visible anymore as the user navigated back to the home screen or to
>> another
>> >>>> app/activity. If you app is needed again Android OS will resurrect
>> you
>> >>>> app/activity. Just implement the proper call backs
>> >>>> (onCreate/onResume/onPause etc.) and your good to go.
>> >>>> On Tue, May 26, 2009 at 4:16 PM, Sujay Krishna Suresh
>> >>>> <[email protected]> wrote:
>> >>>>>
>> >>>>> Say i wanna do something like java's System.exit(0)...
>> >>>>> jus to make sure that my application is not running anymore...
>> >>>>> I wanna kill my own app... not other apps... this should be
>> possible...
>> >>>>> On Tue, May 26, 2009 at 7:38 PM, Marco Nelissen <
>> [email protected]>
>> >>>>> wrote:
>> >>>>>>
>> >>>>>> On Tue, May 26, 2009 at 6:56 AM, Saurav Mukherjee
>> >>>>>> <[email protected]> wrote:
>> >>>>>>>
>> >>>>>>> how do i kill an android application
>> >>>>>>
>> >>>>>> Why would you want to do that?
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> Regards,
>> >>>>> Sujay
>> >>>>> Mitch Hedberg  - "My fake plants died because I did not pretend to
>> >>>>> water them."
>> >>>>>
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Regards,
>> >>> Sujay
>> >>> Frank Lloyd Wright  - "TV is chewing gum for the eyes."
>> >>>
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Regards,
>> > Sujay
>> > Mitch Hedberg  - "My fake plants died because I did not pretend to water
>> > them."
>> > >
>> >
>>
>>
>>
>
>
> --
> Regards,
> Sujay
> Bette Davis <http://www.brainyquote.com/quotes/authors/b/bette_davis.html> - 
> "Brought up to respect the conventions, love had to end in marriage. I'm
> afraid it did."
> >
>

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