Untitled

 avatar
unknown
java
2 years ago
496 B
3
Indexable
class WebviewActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_webview)
        supportActionBar?.title = "Open Webview"
        webview.settings.javaScriptEnabled = true
        webview.addJavascriptInterface(WebAppInterface(this), "JSBridge")
        webview.loadUrl("https://www.sendo.vn/integration-app?code=VNSmartBuy&vne=xxx&init_home=1&embed_platform=vne")
    }
}
Editor is loading...