Created
November 27, 2017 01:01
-
-
Save larkintuckerllc/62400224c67a6b3392ced8ff7079c723 to your computer and use it in GitHub Desktop.
How-to Dagger 2 with Android: Part 1 - 1
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
... | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
TextView dateTextView = findViewById(R.id.tvDate); | |
MyExample myExample = MyExample.getInstance(); | |
dateTextView.setText((new Date(myExample.getDate())).toString()); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment