Initialization of the Activity after it is first created. Must at least
call {@link android.app.Activity#setContentView setContentView()} to
describe what is to be displayed in the screen.
// Be sure to call the super class.
super.onCreate(icicle);
// Have the system blur any windows behind this one.
getWindow().setFlags(WindowManager.LayoutParams.BLUR_BEHIND_FLAG,
WindowManager.LayoutParams.BLUR_BEHIND_FLAG);
// Apply a tint to any windows behind this one. Doing a tint this
// way is more efficient than using a translucent background. Note
// that the tint color really should come from a resource.
WindowManager.LayoutParams lp = getWindow().getAttributes();
lp.tintBehind = 0x60000820;
getWindow().setAttributes(lp);
// See assets/res/any/layout/translucent_background.xml for this
// view layout definition, which is being set here as
// the content of our screen.
setContentView(R.layout.translucent_background);