I want to inject a ContentResolver into a POJO class. In my AbstractModule sublcass, I've created a provider that simply gets the content resolver from my application's context. I've also bound ContentResolver.class to the provider.
When I start my application, however, RoboGuice says that "A binding to android.content.ContentResolver was already configured at roboguice.config.DefaultRoboModule.configure(DefaultRoboModule.java:140)".
How do I resolve this?
Actually it looks like there's a placeholder for this how-to on RoboGuice's github, called "Remove or replace RoboGuice's default bindings"...
Alternatively, is there a way to use a RoboGuice-provided injection in a POJO class? I suppose I'd like to know both :)