title: How to type a text with Android Keyboard with Appium and Python?
body: <p><strong>Introduction</strong></p>
  
  <p>I am developing a script in Python 3.7 using Appium. It will automate some task on a Real Android  smartphone. My script need to type some text in textfield.
  I don't want to use send_keys method or ActionChains.
  I would prefer to type the text, character by character, using the keyboard of the smartphone.</p>
  
  <p><strong>Problem</strong></p>
  
  <p>I investigate and read various docs:</p>
  
  <p>press-keycode</p>
  
  <p><a href="https://appium.readthedocs.io/en/latest/en/commands/device/keys/press-keycode/" rel="nofollow noreferrer">https://appium.readthedocs.io/en/latest/en/commands/device/keys/press-keycode/</a></p>
  
  <p>which brings me to Keyevent</p>
  
  <p><a href="https://developer.android.com/reference/android/view/KeyEvent.html" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/KeyEvent.html</a></p>
  
  <p>Which brings me to KeyCharacterMap</p>
  
  <p><a href="https://developer.android.com/reference/android/view/KeyCharacterMap.html" rel="nofollow noreferrer">https://developer.android.com/reference/android/view/KeyCharacterMap.html</a></p>
  
  <p>To be honest with you, after I read it all, it is super difficult for me to undestand all that.</p>
  
  <p>So I made some experimentations by trying different lines of code to see what happens:</p>
  
  <pre><code>driver.press_keycode(0)
  driver.press_keycode(1)
  driver.press_keycode(2)
  </code></pre>
  
  <p>etc...</p>
  
  <p>It seems than nothing happen.</p>
  
  <p>Is there anyone who knows a good tutorial or article which can explain me how to type a text in a textfield of an Android smartphone Application using the keyboard instead of send_keys method and ActionChains?</p>
  
  <p>Could you help me please to find the way?</p>