简体   繁体   中英

How to enable or disable incognito keyboard programmatically in android?

My system is using google keyboard automatically. Is it possible to enable or disable incognito mode from google keyboard? My OS version is 9.0

you just need to put one flag on your edittext setImeOptions from where you opening keyboard as below

 EditText editText;
 editText.setImeOptions(IME_FLAG_NO_PERSONALIZED_LEARNING);

add this line when you want to enable incognito keyboard.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM