bob wrote: > > Not sure if this is good since he calls System.exit, which I was told > never to call. > >> >>> "I was told ..."
To avoid cargo-cult programming, one should delve into the rationale behind advice. The rationale to avoid 'System.exit()', which is different advice from never use it, is that it causes a program exit. If you *want* to exit the program and do it abruptly without any opportunity to clean up, then it's just fine. The question is when you'd want to do such a thing. Perhaps when the program state is horridly fubared already and you have no choice but to crash anyway? -- Lew -- 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

