Search code examples
androidemulationandroid-keypad

android installed keyboard starts automaticlly on message not on editText


i am working with emulator,i build an application and the user have to write on arabic, i installed arabic keyboard, and it works when i want to write on message like this, when i open the message i will have just 1 keyboard, but when i type any lettle a new keyboard appear and i can use it to write arabic, the two keyboards are: enter image description here

but when i want to use that installed keyboard on my application, when i start typing on edittext the second keyboard doesn't appear like thisenter image description here

so how can i change language or how can i make the second keyboard appear?


Solution

  • i find the solution my self, and for all how have the problem in popup the keyboard , uses this code:

     ((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE))
            .showSoftInput(YourEditText, InputMethodManager.SHOW_FORCED);