I've been coding in C / C++ since the mid 80's and a few years in Java, I'm relatively new to Android development and have been writing apps. for Android for about 18 months. I have always adopted a defensive programming phylosophy, with a view if it can go wrong it will.
That said, this doesn't always help with Android applications, not all classes throw exceptions that can be caught and prevent an application from crashing, in particular it seems that those classes that allocate memory from the heap and quite likely to bomb and take your application down. This is very frustrating, I'm sure I will receive several flaming responses, and if I'm wrong please feel free to put me right. All my methods have try / catch clauses, yet sometimes the application will bomb out and looking through the logs its nearly always due to lack of memory. If I could manage the memory this would never happen, but isn't this whats so good about Java? That you don't have to concern yourself with memory allocation and freeing up resources? Please don't get me wrong I love developing for Android and I really appreciate the help that is given by this group. I'd really like to know how I can make bullet / crash proof applications that are under my control. -- Regards, Sy -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en