Instantly share code, notes, and snippets.

Embed
What would you like to do?
Main Activity for the Conway's Game Of Life on the SSaurel's Blog
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