Untitled

 avatar
unknown
java
2 years ago
519 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&embed_platform=vne&extra__userId=yyy&app_platform=zzz")
    }
}
Editor is loading...