title: Android show softkeyboard with showSoftInput is not working?
body: <p>I have created a trivial application to test the following functionality.  When my activity launches, it needs to be launched with the softkeyboard open.</p>
  
  <p>My code does not work?!</p>
  
  <p>I have tried various "state" settings in the manifest and different flags in the code to the InputMethodManager (imm).</p>
  
  <p>I have included the setting in the AndroidManifest.xml and explicitly invoked in the onCreate of the only activity.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.mycompany.android.studyIme"
        android:versionCode="1"
        android:versionName="1.0"&gt;
      &lt;uses-sdk android:minSdkVersion="7" /&gt;
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:name=".StudyImeActivity"
                    android:label="@string/app_name" 
                    android:windowSoftInputMode="stateAlwaysVisible"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>... the main layout (main.xml) ...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      &gt;
      &lt;TextView  
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content" 
          android:text="@string/hello"
          /&gt;
      &lt;EditText
          android:id="@+id/edit_sample_text"
          android:layout_width="fill_parent" 
          android:layout_height="wrap_content"
          android:hint="@string/hello"
          android:inputType="textShortMessage"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>... and the code ...</p>
  
  <pre><code>public class StudyImeActivity extends Activity {
      private EditText mEditTextStudy;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          mEditTextStudy = (EditText) findViewById(R.id.edit_study);
          InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
          imm.showSoftInput(mEditTextStudy, InputMethodManager.SHOW_FORCED);
      }
  }
  </code></pre>