InputMethodManager imm = (InputMethodManager) getSystemService(Activity.this.INPUT_METHOD_SERVICE);
            imm.hideSoftInputFromWindow(mSearchEditText.getWindowToken(), 0);

解决方案 »

  1.   

    oncreate方法最后面加上上面二句话试试
      

  2.   


    <activity 
                android:name=".ClientSearchViewActivity"
                android:label="@string/app_name" 
                android:screenOrientation="portrait"
                android:windowSoftInputMode="adjustUnspecified|stateHidden"
                android:configChanges="orientation|keyboardHidden">
            </activity>
    试试这句,这是阻止弹出的,需要再修改下 就可以自动弹出软键盘 了
      

  3.   

    看了人人网的客户端,刚进去是个登陆界面,进行时软件盘会自动弹出来。
    我反编绎它的代码但看不出哪里有什么不同啊,
    请高人指点啊。。楼上的方法我试过了,好像没用了,android:windowSoftInputMode的所有属性我都试了