protected void onCreate(Bundle paramBundle) { super.onCreate(paramBundle); spinner = new ProgressDialog(getContext()); spinner.requestWindowFeature(1); spinner.setMessage(getContext().getString(R.string.com_facebook_loading)); spinner.setOnCancelListener(new WebDialog.1(this)); requestWindowFeature(1); contentFrameLayout = new FrameLayout(getContext()); calculateSize(); getWindow().setGravity(17); getWindow().setSoftInputMode(16); createCrossImage(); setUpWebView(crossImageView.getDrawable().getIntrinsicWidth() / 2 + 1); contentFrameLayout.addView(crossImageView, new ViewGroup.LayoutParams(-2, -2)); setContentView(contentFrameLayout); }