Untitled

mail@pastecode.io avatarunknown
java
2 months ago
495 B
3
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/vne?auth_code=xxx&user_id=yyy&platform=zzz&p=abc.html")
    }
}