I am having problems in Injecting a module into my class using roboguice. I added roboguice_modules.xml to src/main/res/values
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="roboguice_modules">
<item>com.androidclient.guice.BindingModule</item>
</string-array>
</resources>
My BindingModule looks like this
public class BindingModule extends AbstractModule {
@Override
protected void configure() {
bind(FooIf.class).to(FooImpl.class);
}
}
and this is how i injected FooImpl into my class
@Inject
FooIf foo;
Any idea on what I am doing wrong here?