David, I'm not sure...let me explain :)
When I call finish() method on a running application, the activity seems close BUT if I look for processes using DDMS, I can find the process related to my application... I don't understand something...I am Stupppiiiiiiiidddddddd :'( On 11 mai, 14:06, David Turner <di...@android.com> wrote: > On Mon, May 11, 2009 at 12:01 PM, arnouf <arnaud.far...@gmail.com> wrote: > > > So if I understand (thanks at all for your answers) > > > If the G1 device displays 6 applications it's just a UI beahviour > > (there are perhaps 15 applications/activity sleeping)... > > > Is not a shame? Example: if I use a game application, really heavy the > > morning...This game stays in memory all the day and slow down (maybe) > > the device.... > > If the game doesn't have background services, it simply won't run. > > The process is held in memory so you can switch back to it very rapidly > (i.e. all the setup is already there, no need to reload everything like > bitmaps from disk), > that's all. > > You should see this a user-friendly optimization :-) > > And what the long-press HOME displays is actually a least-recently-used list > of applications, I'm not even certain that all the corresponding apps have a > process in the system. I'm pretty sure that the "6" is a display limitation > made to keep the UI simpler. > > > Do I understand well? > > > On May 11, 11:06 am, David Turner <di...@android.com> wrote: > > > Essentially, the system will kill application processes to make room for > > new > > > ones in case of contention. There are also some rules to avoid killing > > > system services, or even application services before activities, but the > > > idea is still the same. > > > > Which means that the maximum amount of VM instances you can get depends > > on > > > the available RAM on your devices, what other services are running, etc.. > > > It's hard to give any accurate number then. > > > > On Sun, May 10, 2009 at 9:12 PM, arnouf <arnaud.far...@gmail.com> wrote: > > > > > Hi all, > > > > > It seems that Android can support 6 Dalvik instances in same time. > > > > Each instance contains an application - so one or more Activity. Is it > > > > right? > > > > If user wants launch an Activity Android look for the memory > > > > status...If the new application can be launched, the non used > > > > application is killed (with its Dalvik VM). Right or wrong? > > > > > Thanks all --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Discuss" group. To post to this group, send email to android-discuss@googlegroups.com To unsubscribe from this group, send email to android-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-discuss?hl=en -~----------~----~----~----~------~----~------~--~---