This is not the way Android works. JBQ
On Tue, Apr 28, 2009 at 5:56 AM, Sudha <[email protected]> wrote: > > So can you please just brief me on where to concentrate and what all > should be done while closing an app so that it is entirely erased from > the memory when exited...? > > On Apr 28, 5:51 pm, Jean-Baptiste Queru <[email protected]> wrote: >> finish() doesn't close your application, is just closes your activity. >> The Appliction object itself stays behind, as well, as the entire >> process, as long as there's memory available to keep them around, so >> that re-launching your app is faster then next time around. >> >> JBQ >> >> >> >> On Tue, Apr 28, 2009 at 5:40 AM, Sudha <[email protected]> wrote: >> >> > Hi, >> >> > I have been developing a game on Android and wrote a wrapper for J2ME >> > classes, >> >> > When notifyDestroyed() is called in my ME program and calling finish() >> > but the application doesn't close correctly. >> >> > The App goes to background and when launched again it shows an error >> > message and presents an option to "force close" the App, if i force >> > close it and launch again, the app launches fine but again the same >> > has to be repeated upon every launch.. >> >> > Can you please explain why the App is not being erased from memory >> > when finish() is called.\ >> >> > when i check the log i found no exceptions when closing but when >> > launched again it throws a null pointer exception. >> >> > for now to work around I placed "System.exit(0)" after calling finish >> > () so that the app is exited abruptly, but am waiting for a valid >> > answer on whats going on behind...? >> >> -- >> Jean-Baptiste M. "JBQ" Queru >> Android Engineer, Google. >> >> Questions sent directly to me that have no reason for being private >> will likely get ignored or forwarded to a public forum with no further >> warning. > > > -- Jean-Baptiste M. "JBQ" Queru Android Engineer, Google. Questions sent directly to me that have no reason for being private will likely get ignored or forwarded to a public forum with no further warning. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

