Code example for UnsupportedEncodingException

Methods: printStackTrace

0
            String postData = String.format("log=%s&pwd=%s&redirect_to=%s",
                    mBlog.getUsername(), mBlog.getPassword(),
                    URLEncoder.encode(url, "UTF-8"));
            mWebView.postUrl(getLoginUrl(), postData.getBytes());
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        } 
    } 
 
    /** 
     * WebChromeClient that displays "Loading..." title until the content of the webview is fully 
     * loaded. 
     */ 
    protected class WordPressWebChromeClient extends WebChromeClient {
        private Context context;
 
        public WordPressWebChromeClient(Context context) {
            this.context = context;
        } 
 
        public void onProgressChanged(WebView webView, int progress) {