//自动弹出软键盘
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
InputMethodManager imm = (InputMethodManager) getSystemService(Activity.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);
//设置默认软键盘隐藏的方法:在androidManifest.xml工程管理文件里中,对应的activity里设置
android:windowSoftInputMode="adjustUnspecified|stateHidden";
RelativeLayout 布局底部的EditText会被弹出的键盘遮挡
在AndroidManifest.xml添加<uses-sdk android:minSdkVersion="4" />,即可解决。