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.
 
 
 

24 lines
692 B

package com.example.garagedoor
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
}
fun openGarage(view: View) {
val intent = Intent(this, GarageOpenActivity::class.java).apply {
}
startActivity(intent)
}
fun viewStatus(view: View) {
val intent = Intent(this, GarageViewActivity::class.java).apply {
}
startActivity(intent)
}
}