Code example for Bundle

Methods: getString

0
            // google issue. shouldOverrideUrlLoading not executed 
            if (url.startsWith(mWeibo.getRedirectUrl())) {
                handleRedirectUrl(view, url);
                view.stopLoading();
                WeiboDialog.this.dismiss();
                return; 
            } 
            super.onPageStarted(view, url, favicon);
            mSpinner.show();
        } 
 
        @Override 
        public void onPageFinished(WebView view, String url) {
            Log.d(TAG, "onPageFinished URL: " + url);
            super.onPageFinished(view, url);
            mSpinner.dismiss();
 
            mContent.setBackgroundColor(Color.TRANSPARENT);
            webViewContainer.setBackgroundResource(R.drawable.dialog_bg);
            // mBtnClose.setVisibility(View.VISIBLE); 
            mWebView.setVisibility(View.VISIBLE);
        } 
 
        public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
            handler.proceed();
        } 
 
    } 
 
    private void handleRedirectUrl(WebView view, String url) {
        Bundle values = Utility.parseUrl(url);
 
        String error = values.getString("error");
        String error_code = values.getString("error_code");
 
        if (error == null && error_code == null) {
            mListener.onComplete(values);
        } else if (error.equals("access_denied")) {
            // 用户或授权服务器拒绝授予数据访问权限 
            mListener.onCancel();
        } else { 
            mListener.onWeiboException(new WeiboException(error, Integer.parseInt(error_code)));
        } 
    } 
 
    private static String getHtml(String urlString) {