Rewrite Provider.getInstance() to initialize itself
Current implementation of Provider singleton class requires two steps:
- Provider var = Provider.getInstance()
- var.init(this)
Provider.init(Context context) uses the application context to get an instance of the SharedPreferences in order to update the class' fields. I had run into the problem of not receiving the argument in the static method getInstance() when attempting to pass it there.
Troubleshoot this and find a way to initialize the singleton instance when calling the getInstance() static method.
(from redmine: created on 2013-02-14, closed on 2013-04-15)