Untitled

mail@pastecode.io avatar
unknown
java
a year ago
496 B
1
Indexable
Never
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")
    }
}