Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 9, 2021 05:23
Show Gist options
  • Save codeforfun-jp/cecaa773cb45d6ac55ea7a58acaacfa7 to your computer and use it in GitHub Desktop.
Save codeforfun-jp/cecaa773cb45d6ac55ea7a58acaacfa7 to your computer and use it in GitHub Desktop.
CTB 10-1
public class StartActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_start);
}
public void startGame(View view) {
startActivity(new Intent(getApplicationContext(), MainActivity.class));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment