mmayoub

MathApp, MainActivity.java

Sep 11th, 2021 (edited)
1,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.72 KB | None | 0 0
  1. package com.example.mathapplication;
  2.  
  3. import android.content.Intent;
  4. import android.os.Bundle;
  5. import android.view.View;
  6.  
  7. import androidx.appcompat.app.AppCompatActivity;
  8.  
  9. public class MainActivity extends AppCompatActivity {
  10.  
  11.     @Override
  12.     protected void onCreate(Bundle savedInstanceState) {
  13.         super.onCreate(savedInstanceState);
  14.         setContentView(R.layout.activity_main);
  15.  
  16.         Settings.loadSettings(this);
  17.     }
  18.  
  19.     public void start(View view) {
  20.         Intent intent = new Intent(this, PlayActivity.class);
  21.         startActivity(intent);
  22.     }
  23.  
  24.  
  25.     public void settings(View view) {
  26.         Intent intent = new Intent(this, SettingsActivity.class);
  27.         startActivity(intent);
  28.     }
  29. }
Add Comment
Please, Sign In to add comment