I am created my own class from DialerKeyListener (which limits the
number of digits entered).

Whenever the dialer keyboard comes up, I get this error:
Error parsing keycodes w

App works fine, but why is this error showing up in my logs? Am I
doing something wrong?

My inheritor looks like this:

public class LimitLengthDigitsKeyListener extends DialerKeyListener {

                int mMaxLen;
                LimitLengthDigitsKeyListener(int maxLength) {
                        mMaxLen = maxLength;
                }

                @Override
                public CharSequence filter(CharSequence source, int start, int 
end,
                                Spanned dest, int dstart, int dend) {
                        int newLen = dest.length() + (end - start) - (dend - 
dstart);
                        if(newLen > mMaxLen)
                                return(dest.subSequence(dstart, dend));
                        return(super.filter(source, start, end, dest, dstart, 
dend));
                }
//              @Override
//              protected char[] getAcceptedChars() {
//                return NUMBERCHARS;
//              }
        }

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to