Created
February 5, 2018 16:51
-
-
Save iamBedant/15e07d7d163c4663a6349d91bcaa3782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainActivity extends AppCompatActivity { | |
@Inject | |
DataManager mDataManager; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
DaggerActivityComponent.builder() | |
.activityModule(new ActivityModule(this)) | |
.applicationComponent(DemoApplication.get(this).getComponent()) | |
.build().inject(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment