Created
December 25, 2017 07:19
-
-
Save ssaurel/9949a6c1e318a2702b2c9eb1cde4f102 to your computer and use it in GitHub Desktop.
Main Activity for the Conway's Game Of Life on the SSaurel's Blog
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
package com.ssaurel.gameoflife; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class MainActivity extends AppCompatActivity { | |
private GameOfLifeView gameOfLifeView; | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
gameOfLifeView = (GameOfLifeView) findViewById(R.id.game_of_life); | |
} | |
@Override | |
protected void onResume() { | |
super.onResume(); | |
gameOfLifeView.start(); | |
} | |
@Override | |
protected void onPause() { | |
super.onPause(); | |
gameOfLifeView.stop(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment