Skip to content

Instantly share code, notes, and snippets.

View robertocapah's full-sized avatar
💭
Happy Coding 😆

robertocapah

💭
Happy Coding 😆
View GitHub Profile
@SuppressLint("SetJavaScriptEnabled")
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_connect);
webView = (WebView) findViewById(R.id.webView);
@robertocapah
robertocapah / InjectJsWebview.kt
Created November 26, 2019 03:03 — forked from esabook/InjectJsWebview.kt
listening login form
web.settings.javaScriptEnabled = true
web.settings.allowFileAccessFromFileURLs = true
web.webViewClient = object: WebViewClient(){
override fun onPageFinished(view: WebView?, url: String?) {
super.onPageFinished(view, url)
evaluateJS(view)
}}