Android Question Keyboard no password suggested and all characters accepted

bluedude

Well-Known Member
Licensed User
Hi,

I want to disable auto suggest for password fields but accept all characters. How do I set that with a custom filter. This does not seem to work:

IME.SetCustomFilter(EditText4, Bit.OR(EditText4.INPUT_TYPE_TEXT, 0x00080000),Null)

Not sure how to set accept all characters.
 

Informatix

Expert
Licensed User
Hi,

I want to disable auto suggest for password fields but accept all characters. How do I set that with a custom filter. This does not seem to work:

IME.SetCustomFilter(EditText4, Bit.OR(EditText4.INPUT_TYPE_TEXT, 0x00080000),Null)

Not sure how to set accept all characters.
I suggest to use Masked EditText as it fixes an issue with Samsung devices concerning suggestions. To disable the suggestions with MET, you have to set the WithSuggestions property to False (it's the default setting when PasswordMode = True). And if you don't restrict the character set (InputType = TEXT), then all characters are accepted.
 

bluedude

Well-Known Member
Licensed User
I tested the masked edit but did not give me the results I wanted, no time to test a new solution or library right now.

Anyone else?
 

Informatix

Expert
Licensed User
I tested the masked edit but did not give me the results I wanted, no time to test a new solution or library right now.

Anyone else?
Then you should explain in a different way and more accurately what you want because according to your first post, I can't see what better answer or better lib you could get.
 

bluedude

Well-Known Member
Licensed User
Well, exactly as I explained. I want to set a custom filter with the keyboard library (with the flag) but also accept all characters. Could not find how to allow all characters in the sample I provided. In provided sample I can only set a limit on characters.

Not saying your masked edit isn't working btw, it isn't what i'm looking for right now.

The keyboard option means I don't need to do anything on the UI or implement custom views.
 

Informatix

Expert
Licensed User
Well, exactly as I explained. I want to set a custom filter with the keyboard library (with the flag) but also accept all characters. Could not find how to allow all characters in the sample I provided. In provided sample I can only set a limit on characters.

Not saying your masked edit isn't working btw, it isn't what i'm looking for right now.
I'm sorry but it's not clear at all. You want to set a filter and, at the same time, accept all characters. A filter is meant to restrict the input characters, so I hope for you that someone will understand your request because I'm not able to. And concerning MET, did you try the Filter event?
 

bluedude

Well-Known Member
Licensed User
Basically I don't want to set a filter but just the "no suggestion" flag. However, the sample does both and I don't know how to just set the no_suggestion flag. I want to keep the password field as password.

Clear?
 

Informatix

Expert
Licensed User
Basically I don't want to set a filter but just the "no suggestion" flag. However, the sample does both and I don't know how to just set the no_suggestion flag. I want to keep the password field as password.

Clear?
What's your device brand and model? Having no suggestions for password is the expected and normal behavior when you set PasswordMode to true with MET. Samsung devices have a known bug with suggestions and password but I implemented a workaround in MET (and it works fine AFAIK).
You didn't miss a magical setting for EditText; there's not. MET does everything what EditText is able to do and fixes some issues with InputType, suggestions and passwords.
Provide a sample and details on your device; that will give me a chance to find a solution.
 

bluedude

Well-Known Member
Licensed User
Hi,

it doesn't seem to be a bug with Samsung, this is on a Nexus 5.

I just want to force it by using the custom filter, that's it. Again, currently I cannot look into other solutions unfortunately.

I think the password no suggestion works but I want it without accepted characters, have no clue how to set that one only.
 

bluedude

Well-Known Member
Licensed User
Mmm, I just say I want to have no suggestion in the password box. It should work by default but it does not on several devices. That's why I want to use the custom filter to just do that, set suggestion off for password field.

That should be possible by using the flag 0x00080000 but I don't know how to do that and still allowing all characters.

So characters should not be limited but the password should not be visible in my suggestions.

Cheers.
 

Informatix

Expert
Licensed User
Mmm, I just say I want to have no suggestion in the password box. It should work by default but it does not on several devices. That's why I want to use the custom filter to just do that, set suggestion off for password field.

That should be possible by using the flag 0x00080000 but I don't know how to do that and still allowing all characters.

So characters should not be limited but the password should not be visible in my suggestions.

Cheers.
I see where's the confusion. Filter and suggestions are not related at all. The flag that you mention (TYPE_TEXT_FLAG_NO_SUGGESTIONS) is a value for the InputType parameter. When you set Suggestions to false in MET, the java code adds this flag for you. Doing this yourself will bring nothing different.
It would be interesting to have a sample to reproduce the problem and a list of devices not working as expected, with their OS version.
 
Top