Or maybe call this on your TextView:

public void setKeyListener (KeyListener input)
Added in API level 1
Sets the key listener to be used with this TextView. This can be null to 
disallow user input. Note that this method has significant and subtle 
interactions with soft keyboards and other input method: see 
KeyListener.getContentType() for important details. Calling this method 
will replace the current content type of the text view with the content 
type returned by the key listener.
Be warned that if you want a TextView with a key listener or movement 
method not to be focusable, or if you want a TextView without a key 
listener or movement method to be focusable, you must call 
setFocusable(boolean) again after calling this to get the focusability back 
the way you want it.
Related XML Attributes
android:numeric
android:digits
android:phoneNumber
android:inputMethod
android:capitalize
android:autoText


On Monday, November 26, 2012 10:38:51 AM UTC-6, bob wrote:
>
> Maybe override onKeyDown of your View subclass?
>
> On Monday, November 26, 2012 2:06:31 AM UTC-6, Shaffz wrote:
>>
>> how to get each key press?? 
>>
>>
>>
>> On Mon, Nov 26, 2012 at 1:29 PM, shibin francis <[email protected]>wrote:
>>
>>> Use counter and flag.  set the flag,when the number of press exceeds the 
>>> limit.
>>>  Good day
>>>
>>> On 11/26/12, mohd shafnaz <[email protected]> wrote:
>>> > Hai,
>>> > I want to get the each key press time of android. i want to implement a
>>> > security module in my app... plz help me....
>>> >
>>> > --
>>> > Mohammed Shafnaz Hamza
>>> >
>>> > --
>>> > 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
>>>
>>> --
>>> 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
>>>
>>
>>
>>
>> -- 
>> Mohammed Shafnaz Hamza
>>  
>

-- 
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