Repo for Programming MB code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
692 B

  1. package com.example.garagedoor
  2. import android.content.Intent
  3. import androidx.appcompat.app.AppCompatActivity
  4. import android.os.Bundle
  5. import android.view.View
  6. class MainActivity : AppCompatActivity() {
  7. override fun onCreate(savedInstanceState: Bundle?) {
  8. super.onCreate(savedInstanceState)
  9. setContentView(R.layout.activity_main)
  10. }
  11. fun openGarage(view: View) {
  12. val intent = Intent(this, GarageOpenActivity::class.java).apply {
  13. }
  14. startActivity(intent)
  15. }
  16. fun viewStatus(view: View) {
  17. val intent = Intent(this, GarageViewActivity::class.java).apply {
  18. }
  19. startActivity(intent)
  20. }
  21. }