super.onCreate(savedInstanceState);
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
mRootView = new ScrollView(this);
EditText editText = new EditText(this);
editText.requestFocus();
mDefaultFocusedView = editText;
layout.addView(editText);
((ScrollView) mRootView).addView(layout);
setContentView(mRootView);
// set to resize so IME is always shown (and also so
// ImfBaseTestCase#destructiveCheckImeInitialState thinks it should always be shown
this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);