title: Replicate physical keyboard on the Android emulator
body: <p>I have a couple of reports on my recent app of a bug related to a phone with a physical keyboard, an EditText, and an orientation change.</p>
  
  <p>I don’t have a phone with a physical keyboard, so I have to try to replicate the problem somehow.  In the emulator creation screen under the AVD manager in Eclipse, there is an option for “keyboard support.”  Is this how I would replicate a physical keyboard phone on the emulator?</p>
  
  <p>Are there any other ways I could debug my problem?  Thanks.</p>
  
  <p><strong>Edit upon request</strong>:  Current symptoms as communicated by the user are</p>
  
  <ol>
  <li>EditText Preference not getting saved (I'm making this assumption based on their input)</li>
  <li>Something to due with the activity not switching orientation properly when the user opens up the keypad.  It requires the user to open it twice.</li>
  </ol>
  
  <p>Complete Activity code.  NOTE: The <code>EditText</code> below is not the problem <code>EditText</code>.</p>
  
  <pre><code>public class GreetingOptions extends PreferenceActivity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.layout.greeting_options);
  
          //Set the edit text preference to only accept positive integers
          EditTextPreference fontSize = (EditTextPreference) findPreference("fontSize");
          EditText myEditText = (EditText) fontSize.getEditText();
          myEditText.setKeyListener(DigitsKeyListener.getInstance(false, false));
  
      }
  }
  </code></pre>