title: How to get cursor on edit text above sdk 2.3 version on android
body: <p>i am doing dial pad as native dial pad on the android phones. instead of soft keyboard i have given buttons(1,2,.....*,#). that is why i need cursor visibility and soft key board hide.</p>
  
  <p>In my app i have created my own dial pad with an edit text for displaying inputs and buttons for press numbers.  i have hidden the soft key board for the edittext with the following option    </p>
  
  <p><code>dialText.setInputType(InputType.TYPE_NULL);</code>  </p>
  
  <p>i am running the code on 2.3.x and its below version it works file with the dial edittext <strong>shown the cursor on the edittext</strong>. But if run the above code on <strong>sdk version 4.0 its does not show the cursor</strong>. my problem is <strong>i need to show the cursor on edittext for all android version device</strong>. how to do that? please help me.</p>
  
  <p>To hide soft key board i am using:</p>
  
  <pre><code>dialText.setInputType(InputType.TYPE_NULL);  // hide soft key board 
  </code></pre>
  
  <p>my edit text xml:</p>
  
  <pre><code> &lt;EditText
      android:id="@+id/dialText"
      android:layout_width="match_parent"
      android:layout_marginTop="15dp"
      android:layout_marginLeft="5dp"
      android:layout_marginRight="5dp"
      android:gravity="center"
      android:singleLine="true"
      android:layout_height="wrap_content"
      android:ems="10" &gt;
  &lt;/EditText&gt;
  </code></pre>