1

I am getting started with RoboGuice 4. Following the example in github I created the Module file, registered it in AndroidManifest.xml and created some interface and implementation. Also added the code to MainActivity:

override onCreate( ..
    RoboGuice.setupBaseApplicationInjector(application)
    RoboGuice.getInjector(this).injectMembers(this)

It all works well, but does this mean I have to add this code everywhere I use @Inject? Is there any way to avoid it?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.