Get keyboard language or detect user input language in Android

后端 未结 5 1214
Happy的楠姐
Happy的楠姐 2020-12-15 09:41

Problem Description

I\'m trying to detect current selected language of the keyboard. For that purpose I use following code:

Code

/* Return t         


        
5条回答
  •  感动是毒
    2020-12-15 09:50

    No. There's a phone locale, but the keyboard may ignore it by design (many keyboards allow you to switch languages just within the keyboard for bilingual users). There's no API for the keyboard to report it has done so to the OS.

提交回复
热议问题