Pass a value to loadURL - Android

前端 未结 3 741
灰色年华
灰色年华 2020-12-30 08:32

Is it possible to pass a value to the URL mentioned in webView.loadUrl? something like this??

webView.loadUrl(\"file:///android_asset/www/index.html#value=\"         


        
3条回答
  •  滥情空心
    2020-12-30 09:24

    I found a simple solution. Below is the code which is working

    String s = "http://10.0.2.2/myhtml/add.php?bc=" + bc;   
    myWebView.loadUrl(s);
    

提交回复
热议问题