I need to post data to Webview. I found from some of the links the below code:
WebView webview = new WebView(this); setContentView(webview); String u
Try like below...
WebView webview = new WebView(this); setContentView(webview); String url = "http://www.example.com"; String postData = "username=" + URLEncoder.encode(my_username, "UTF-8") + "&password=" + URLEncoder.encode(my_password, "UTF-8"); webview.postUrl(url,postData.getBytes());