Code example for WebView

Methods: postUrl, requestFocus, setVisibility

0
            String url = targetURL;
            String postData = "score="+score+
            "&fishTotal="+fishTotalKills+"&fishSession="+
            fishSessionKills+"&world="+worldNum+"&playerID="+playerID+"&device="+Build.MODEL+"&marketType="+market;
 
            mWebView.setVisibility(View.VISIBLE);
            mWebView.postUrl(url, EncodingUtils.getBytes(postData, "BASE64"));
            mWebView.requestFocus(View.FOCUS_DOWN);
        } 
 
        t.show();
 
    } 
 
	public void exitFacebook() 
	{ 
		if(mWebView != null && mWebView.getVisibility() == View.VISIBLE)
		{ 
			mWebView.setVisibility(View.INVISIBLE);
			mWebView.stopLoading();
Contextual code suggestions in your IDE  Get Codota for Java