title: How to post data for WebView android
body: <p>I need to post data to Webview. <br>
  I found from some of the links the below code:</p>
  
  <pre><code> WebView webview = new WebView(this);
   setContentView(webview);
   String url = "http://www.example.com";
   String postData = username=my_username&amp;password=my_password";
   webview.postUrl(url",EncodingUtils.getBytes(postData, "BASE64"));
  </code></pre>
  
  <p>But in my android studio I see EncodingUtils as deprecated <br>
  Can anyone help me what is the alternative for EncodingUtils to post data to Android WebView?</p>