How to disable Keyboard cache in Android programmatically for sensitive input fields?
Asked
Active
Viewed 4,160 times
3 Answers
3
android:inputType="password"
doesn't cache

Robert
- 39,162
- 17
- 99
- 152

Sudeep Srivastava
- 98
- 9
-
1True but that would also hide the input typed right.. Let's say we are talking about creditcard number.. I do not want to hide the input typed – user2058872 Jul 14 '16 at 11:30
-
android:inputType="textNoSuggestions" and please read https://developer.android.com/reference/android/widget/TextView.html#attr_android%3ainputType – Sudeep Srivastava Jul 19 '16 at 07:12
1
To disable to Edittext
suggestions
android:inputType="textNoSuggestions"

AskNilesh
- 67,701
- 16
- 123
- 163

Android Surya
- 544
- 3
- 17
-
3This will disable suggestions in my input field. What I'm looking for is a setting at my input field level "to prevent caching" so that its not shown as a suggestion elsewhere – user2058872 Jul 14 '16 at 08:59
1
I'm guessing the best would be:
inputType="textVisiblePassword"
An overview is provided at: Difference between android:inputType="textPassword", "textVisiblePassword","textWebPassword" and "numberPassword" in android?
(For different inputtypes: https://developer.android.com/reference/android/R.styleable.html?hl=en#TextView_inputType)

Robert Columbia
- 6,313
- 15
- 32
- 40

Khamaseen
- 326
- 3
- 9