3I want to develop a webview application, that will be used to view a particular website, but I'm having some trouble, I will paste the logcat also along with android code.

I am using webchromeclient to display facebook social comment plugin in my android webview app.

Detailed help would be appreciated since I am a naive programmer

Code:
package www.rockersandroid.webuda.com;

import android.os.Bundle;
import android.os.Message;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout;
import android.widget.RelativeLayout.LayoutParams;


@SuppressLint("SetJavaScriptEnabled") 

public class EVENTOFY extends Activity {
	private String requestUrl="http://www.some url";
	 private WebView webView,childView =null;
	 private LinearLayout parentLayout;
	 private Activity MyActivity;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.getWindow().requestFeature(Window.FEATURE_PROGRESS);
        
        setContentView(R.layout.activity_eventofy);
        
        getWindow().setFeatureInt(Window.FEATURE_PROGRESS,Window.PROGRESS_VISIBILITY_ON);
        parentLayout =(LinearLayout)findViewById(R.id.webview);


        MyActivity = this;


        webView = new WebView(this);
        webView.setLayoutParams(getLayoutParams());

        webView.setWebViewClient(new FaceBookClient());
        webView.setWebChromeClient(new MyChromeClient());
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setAppCacheEnabled(true);
        webView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
        webView.getSettings().setSupportMultipleWindows(true);
        webView.getSettings().setSupportZoom(true);
        webView.getSettings().setBuiltInZoomControls(true);

        parentLayout.addView(webView);
        webView.loadUrl(requestUrl);

     }
        
        
    private LinearLayout.LayoutParams getLayoutParams(){
        return new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT); 
    }


        final class MyChromeClient extends WebChromeClient{
        @Override
        public boolean onCreateWindow(WebView view, boolean dialog,
                boolean userGesture, Message resultMsg) {
            childView = new WebView(EVENTOFY.this);
            childView.getSettings().setJavaScriptEnabled(true);
            childView.getSettings().setSupportZoom(true);
            childView.getSettings().setBuiltInZoomControls(true);
            childView.setWebViewClient(new FaceBookClient());
            childView.setWebChromeClient(this);
            childView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));


            parentLayout.addView(childView);


            childView.requestFocus();
            webView.setVisibility(View.GONE);

              /*I think this is the main part which handles all the log in session*/
            WebView.WebViewTransport transport =(WebView.WebViewTransport)resultMsg.obj;
            transport.setWebView(childView);
            resultMsg.sendToTarget();
            return true;
        }


        @Override
        public void onProgressChanged(WebView view, int newProgress) {
            MyActivity.setProgress(newProgress*100);
        }

        @Override
        public void onCloseWindow(WebView window) {
            parentLayout.removeViewAt(parentLayout.getChildCount()-1);
            childView =null;
            webView.setVisibility(View.VISIBLE);
            webView.requestFocus();
        }
    }

        private class FaceBookClient extends WebViewClient{
         @Override
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            Log.i("REQUEST URL",url);
            return false;
        }   
    }

        @Override
        public void onBackPressed() {
        if(childView != null && parentLayout.getChildCount()==2){
            childView.stopLoading();
            parentLayout.removeViewAt(parentLayout.getChildCount()-1);
            if(webView.getVisibility() == View.GONE)
                webView.setVisibility(View.VISIBLE);
        }else{          
            super.onBackPressed();
        }
    }
}


and Logcat is

Code:
03-16 23:29:35.987: I/Process(309): Sending signal. PID: 309 SIG: 9
03-16 23:30:41.842: D/AndroidRuntime(339): Shutting down VM
03-16 23:30:41.895: W/dalvikvm(339): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-16 23:30:41.922: E/AndroidRuntime(339): FATAL EXCEPTION: main
03-16 23:30:41.922: E/AndroidRuntime(339): java.lang.RuntimeException: Unable to start activity ComponentInfo{www.rockersandroid.webuda.com/www.rockersandroid.webuda.com.EVENTOFY}: java.lang.ClassCastException: android.webkit.WebView
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.os.Handler.dispatchMessage(Handler.java:99)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.os.Looper.loop(Looper.java:123)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread.main(ActivityThread.java:4627)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at java.lang.reflect.Method.invokeNative(Native Method)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at java.lang.reflect.Method.invoke(Method.java:521)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at dalvik.system.NativeStart.main(Native Method)
03-16 23:30:41.922: E/AndroidRuntime(339): Caused by: java.lang.ClassCastException: android.webkit.WebView
03-16 23:30:41.922: E/AndroidRuntime(339): 	at www.rockersandroid.webuda.com.EVENTOFY.onCreate(EVENTOFY.java:34)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-16 23:30:41.922: E/AndroidRuntime(339): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-16 23:30:41.922: E/AndroidRuntime(39): 	... 11 more