Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.mathapplication;
- import android.content.Intent;
- import android.os.Bundle;
- import android.view.View;
- import androidx.appcompat.app.AppCompatActivity;
- public class MainActivity extends AppCompatActivity {
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- Settings.loadSettings(this);
- }
- public void start(View view) {
- Intent intent = new Intent(this, PlayActivity.class);
- startActivity(intent);
- }
- public void settings(View view) {
- Intent intent = new Intent(this, SettingsActivity.class);
- startActivity(intent);
- }
- }
Add Comment
Please, Sign In to add comment