Last active
June 26, 2017 22:03
-
-
Save ceruleanotter/8a9072811a2ab00137ad2bbaa9685168 to your computer and use it in GitHub Desktop.
ViewModel BlogPost : Part 1 : Step 2
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); | |
mViewModel = ViewModelProviders.of(this).get(ScoreViewModel.class); | |
// Other setup code below... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment