Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Coders!

I'm working on an app in which I show a message to user what to type in an EditText. If user doesn't input what is shown in message, make him/her remove the mistakes. E.g. lets say I want user to type "Hello World" while he types "Hello Qorld" i.e. he/she made mistake so a message is going to appear to press backspace till he reaches Q and then message is going to appear which character to type next i.e. W. I've tried playing with arrays and indexes and trying to get it done but can't. A hint/solution would be great. I need help in this regard urgent and badly. Thanks in advance.
Posted

1 solution

You should look at the methods and properties of the EditText class[^], to see when and if you can get a notification that the content has changed. At that point you can compare their typing to the expected string.
 
Share this answer
 
Comments
Zainy95 23-Jul-14 2:28am    
What I've asked for is, the implementation. I have already defined EditText events. I'm looking for kind of an algorithm or actual code to solve the above mentioned problem.
Richard MacCutchan 23-Jul-14 2:48am    
That's the part you have to write, after you have defined the rules.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900