my requirement is that, the user should only be able to type in digits 0 throu 9 , and that after every 4 characters, a "-" sign is automatically appended to the edittext.user should not be able to delete any part of the edittext except at end. Please suggest hoe to do this.
The user should not be able to move the cursor to anywhere in the middle of the typed text, and be able to delete it. How to accomplish this? What event is called when the user moves the position of the cursor?