title: how to hide soft keyboard when default menu selecting in edit text?
body: <p>on my app there is an option to select text from the edit text.the content will automatically set into the edit text.so i put code for hide the keyboard but when I'm trying to select text  by selecting the default  menu, keyboard comes foreground.i tried to block it through manifest file but it is also not working in my device.one thing i noticed that it is working fine in some other devices so what about this?please help me...</p>
  
  <p>code used for hiding the soft keyboard is follows</p>
  
  <p>1) </p>
  
  <pre><code> InputMethodManager imm=(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
  imm.hideSoftInputFromWindow(Edittext.getWindowToken(),0);
  </code></pre>
  
  <p>or</p>
  
  <p>xml</p>
  
  <pre><code> &lt;EditText
          android:id="@+id/editText1"
          android:layout_width="wrap_content"
          android:layout_height="fill_parent"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_alignParentTop="true"
          android:editable="false"&gt;
      &lt;/EditText&gt;
  </code></pre>
  
  <p>2)  code used to hide the softkeyboard in particular activity (Manifest file)</p>
  
  <pre><code>&lt;activity android:name=".selecttext"  android:label="@string/app_name"  android:windowSoftInputMode="stateHidden"&gt;&lt;/activity&gt;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>&lt;activity android:name=".selecttext"  android:label="@string/app_name"
  android:windowSoftInputMode="stateAlwaysHidden"&gt;&lt;/activity&gt;
  </code></pre>