Hi, Different from java.sql.SQLException, android.database.SQLException is a RuntimeException. So, It is not necessary to surround the database operation with try...catch clause. But what will happen if such an exception indeed happens? The application crushes? While, I think maybe a warning/error dialog or a toast(a view containing a quick little message for the user) will be better, just tell the end-user that something unexpected happened and the operation failed.
Any ideas about this? Or the SQLite database is robust enough, so I do not need worry about those exceptions since I program carefully to avoid logic exceptions such as duplicate primary key exception. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---