It says not to call it in the oncreate, but that aside: how can I make it globally accessible? If I have several functions that access the database, how would I efficiently use the single instance of it, rather than re-call the write function in every function?
Share
AFAIK you should call it each time you need a database instance for new operations. It’s not your task to cache its instance… Jut remember to call close().