Thank you all for your advice.

I had intended to utilize an abstract class for storable objects which
would access the database through a singleton adapter. The database
handler would only be initialized if there was a method call that
would require usage of the database.

What I will do instead is instantiate the database adapter from the
main applications onCreate method, so as I can pass and store the
context, which I will then use for the later opening of the database
if it is required.

Thanks once again,

Kind Regards,

Matt
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to