Skip to content

Instantly share code, notes, and snippets.

@lukaspili
Created March 3, 2015 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaspili/482399eb977c9c9a3a85 to your computer and use it in GitHub Desktop.
Save lukaspili/482399eb977c9c9a3a85 to your computer and use it in GitHub Desktop.
public class SimpleActivity extends Activity {
@Inject
Api api;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
DemortarApp.getDemortarApp(this).getComponent().inject(this);
api.itWorks();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment