Code example for WebView: Displaying web pages

Methods: getSettingsloadUrlsetNetworkAvailablesetWebViewClient, requestFocus, setOnTouchListener, setVisibility

0
    private void performAuth() { 
    	setContentView(R.layout.auth);
		WebView browserView = (WebView)findViewById(R.id.browserView);
		///////////////////////////////////////////////////////// 
		// http://code.google.com/p/android/issues/detail?id=7189 
		browserView.requestFocus(View.FOCUS_DOWN);
		browserView.setOnTouchListener(new View.OnTouchListener() {
            public boolean onTouch(View v, MotionEvent event) {
                switch (event.getAction()) {
                    case MotionEvent.ACTION_DOWN:
                    case MotionEvent.ACTION_UP:
                        if (!v.hasFocus()) {
                            v.requestFocus();
                        } 
                        break; 
                } 
                return false; 
            } 
        }); 
		///////////////////////////////////////////////////////// 
		browserView.setNetworkAvailable(true);
		browserView.setWebViewClient(new SyncWebViewClient());
		browserView.getSettings().setJavaScriptEnabled(true);
		browserView.loadUrl(ServerInterface.AUTH_URL);
		browserView.setVisibility(View.INVISIBLE);
    } 
	 
     
	private void completeAuthentication(Uri reply) {
		String query = reply.getQuery();
Connect your IDE to all the code out there  Get Codota for Java