I am considering creating a singleton wrapper for Context, so my model objects, if necessary, can open and read from a database connection. My model objects do not have access to Context, and I would like you to not have to pass the link to the object Contextfrom object to object.
I planned to place a link to Contextreturned on this singlet Application.getApplicationContext(). This singleton object will be initialized in my user instance Applicationbefore anything else is needed or able to use it.
Can anyone think of a reason not to do this?
source
share