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.

18 lines
502 B

  1. package com.example.garagedoor
  2. import androidx.appcompat.app.AppCompatActivity
  3. import android.os.Bundle
  4. import android.webkit.WebView
  5. class GarageViewActivity : AppCompatActivity() {
  6. override fun onCreate(savedInstanceState: Bundle?) {
  7. super.onCreate(savedInstanceState)
  8. setContentView(R.layout.activity_garage_view)
  9. val myWebView = WebView(this)
  10. setContentView(myWebView)
  11. myWebView.loadUrl("http://70.123.32.254:1234/sensor")
  12. }
  13. }