So verwenden Sie Webansicht in Android Studio

lateinit var web: WebView

    @SuppressLint("SetJavaScriptEnabled")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        web = findViewById<WebView>(R.id.web)
        web.webViewClient = WebViewClient()
        web.loadUrl("https://v2.crichd.tv/new-home")

        val webs = web.settings
        webs.javaScriptEnabled = true

    }

    override fun onBackPressed() {
        if (web.canGoBack()) {
            web.goBack()
        } else {
            super.onBackPressed()
        }

    }
android developer