Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Can I get the used Keyboard language from Android device?

Guest
Aug 13, 2014 Aug 13, 2014

Can I get the used Keyboard language from Android device for external keyboard?

TOPICS
Development
349
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 13, 2014 Aug 13, 2014

If I understand you correctly and are just wanting to get a string value of the language name or country, then in theory yes. According to the link below, you should be able to get the current language but you will need to create a native extension to do so. The first answer has no votes, but it seems like an easy way to do it.

java - Get keyboard language or detect user input language in Android - Stack Overflow

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 03, 2014 Sep 03, 2014
LATEST

In case you were interested and it still mattered to you, I started making a native extension that could do what you would like. The ANE can also pretty much do everything the Locale class in Java can do. Im still wrapping things up and adding onto what the Locale class in Java does. Will post back with a link whenever I get to a good "finished" state for others to test and use.

Locale | Android Developers

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines