Simple example

suggest change

RoboGuice is a framework that brings the simplicity and ease of Dependency Injection to Android, using Google’s own Guice library.

class RoboWay extends RoboActivity { 
    @InjectView(             TextView name; 
    @InjectView(        ImageView thumbnail; 
    @InjectResource(R.drawable.icon)   Drawable icon; 
    @InjectResource(R.string.app_name) String myName; 
    @Inject                            LocationManager loc; 

    public void onCreate(Bundle savedInstanceState) { 
        name.setText( "Hello, " + myName ); 

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents