This all sounds like a local Service to me. Open the db in onBind if its not open. Let the service take care of how many Activities/ Services are bound and close the db in onUnbind.
Easy, simple everything you need is already there. Or you can complicate things and reinvent singletons and counting how many Activities and Services have references to your db object ;P -- 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

