Android Question ShowKeyboard does not work - please help

Discussion in 'Android Questions' started by aedwall, Apr 10, 2019.

  1. aedwall

    aedwall Active Member Licensed User

    I have been trying everything I can think of to make my txtCity EditText control open the soft keyboard automatically. Can someone please help me?

    Dim IME1 As IME
    Dim txtCity As EditText

      txtCity.InputType = txtCity.INPUT_TYPE_TEXT

    UPDATE: I inserted this in the manifest ediotr:

    SetActivityAttribute(<activity name>, android:windowSoftInputMode, stateVisible)

    I used Main for "<activity name>"?

    Now, how do I get the keyboard to hide itself?

    Answer: I inserted this command when I was finished - IME1.HideKeyboard

    I hope this helps others.
    Last edited: Apr 10, 2019
    Erel likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice