title: Cannot get the user to input text in my EditView for android
body: <p>I'm doing some basic programming for my android in eclipse</p>
  
  <p>I'm trying to do something simple as getting the user to enter a name in an <code>EditText</code>, but when I press the textbox the soft keyboard doesn't appear and input is impossible.</p>
  
  <p>I don't know if I have forgotten anything in the code or anything else,
  this is what I have so far:</p>
  
  <pre><code>public class Menu extends Activity implements OnClickListener {
      private EditText enterName;
      private Button accept;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.menu);
  
          enterName = (EditText)findViewById(R.id.name);
          accept = (Button)findViewById(R.id.acceptName);
  
          @Override
          public void onClick(View v) {
          // TODO Auto-generated method stub
          }
  </code></pre>
  
  <p>And the layout .XML-file</p>
  
  <pre><code>...
  &lt;EditText
      android:id="@+id/name"
      android:hint="Enter Name"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:inputType="text"&gt;
  
      &lt;requestFocus /&gt;
  &lt;/EditText&gt;
  ...
  </code></pre>
  
  <p>So at the moment all I want is to get the user to be able to write text in the box.</p>
  
  <p>EDIT:---->New Problem----></p>
  
  <p>Ok, so last problem involved something that I didn't mention in the post.</p>
  
  <p>In my activity I change the layout with command:</p>
  
  <pre><code>setContentView(R.id.(XML-file));
  </code></pre>
  
  <p>And when I put the EditView in the second XML (not the one that shows on create) it wont work =/. Sorry if I left this out before, but does it make any sense?</p>