How to open it again even if the user finishes with an English keyboard

Asked 2 years ago, Updated 2 years ago, 117 views

Question: How to open it again in Korean keyboard even if the user finishes with English keyboard

If you leave it as below, even if the user finishes with a Korean keyboard, it will open in English when you reopen it. Note: http://www.androidpub.com/610520

        <EditText
            ...
            android:inputType="textVisiblePassword" />

However, even if the user finishes with an English keyboard, I don't know how to open it again, so I ask you a question.

        <EditText
            android:privateImeOptions="defaultInputmode=korean;"
            ...
            android:background="@color/color2" />

The privateImeOptions specified in the layout will only be applied once when the app is installed, and when the user exits the app with the English version selected, it will appear as an English version when restarting.

But I couldn't find a way to specify Korean in the layout inputType attribute.

Goal: The goal is to force the Korean keyboard to be displayed whenever the app is restarted, and whenever possible, whenever a specific page is opened.

        MainActivity.et_search.setPrivateImeOptions("defaultInputmode=korea;");

They say this is how you do it, but... It doesn't work.

        MainActivity.et_search.setPrivateImeOptions("defaultInputmode=korean;");

It's frustrating, so I can't do the same as above.

Also, even if you try to restart the app by inserting the above code into onCreate, it will not be reflected.

            android:privateImeOptions="defaultInputmode=korean;"

=> android:privateImeOptions="defaultInputmode=korean;symbol=false"

I don't know the difference between the above two codes, and I can't feel any difference.

I would appreciate it if you could tell me how to open it again in Korean even if the user finishes it in English.

edittext keyboard android

2022-09-22 11:53

4 Answers

I tested it because I was curious about the question, but there are differences between keyboard apps.

android:privateImeOptions="defaultInputmode=Korean" on layout XML With this option, Galaxy 3, Galaxy Note 3, or Samsung keyboard app, While it opens up in Korean, it's on my phone, Sony Xperia xz The basic keyboard doesn't work.

When you open it with an Alkeyboard, the Korean keyboard comes out right away. I don't know if there are other settings, but those methods differ from keyboard app to app.


2022-09-22 11:53

It's Thank you for your reply above.


2022-09-22 11:53

It's a self-answer.

Note: Summary of IME http://gtko.tistory.com/208

I organized it on the page below referring to the page above.

Soft keyboard (1) Always start with a Korean keyboard/[Android] http://blog.daum.net/andro_java/839


2022-09-22 11:53

Looking back, even if I use the method I found, it works well on Samsung Phone (19, S3), but on LG Phone (21, G2), if you finish with English keyboard and start again, you will get an English keyboard. There seems to be no more way at the moment.


2022-09-22 11:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.