[android-developers] How to detect backspace/delete key in Jelly Bean and later

2013-09-07 Thread jb
Hi,

I'm looking for some help in how to detect backspace/delete keys when 
running on Jelly Bean or later.
According to the KeyEvent reference:

the default software keyboard will never send any key event to any 
> application targeting Jelly Bean or later, and will only send events for 
> some presses of the delete and return keys to applications targeting Ice 
> Cream Sandwich or earlier


 myEditText.setOnKeyListener() does not get called when the backspace is 
clicked on a soft keyboard.

TIA,

jb

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How to detect backspace/delete key in Jelly Bean and later

2013-09-07 Thread Douglas Drumond
Soft keyboard will show for text input, so you can detect if the text
changed.


--
Douglas Drumond
*eee19.com* 
*gplus.to/douglasdrumond* 
*@douglasdrumond* 



2013/9/7 jb 

> Hi,
>
> I'm looking for some help in how to detect backspace/delete keys when
> running on Jelly Bean or later.
> According to the KeyEvent reference:
>
> the default software keyboard will never send any key event to any
>> application targeting Jelly Bean or later, and will only send events for
>> some presses of the delete and return keys to applications targeting Ice
>> Cream Sandwich or earlier
>
>
>  myEditText.setOnKeyListener() does not get called when the backspace is
> clicked on a soft keyboard.
>
> TIA,
>
> jb
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to android-developers+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] How to detect backspace/delete key in Jelly Bean and later

2013-09-07 Thread jb
I've seen on some devices that the backspace/delete key does not delete 
previously entered characters. That is why I'm asking how to detect the 
backspace key.
Entering text is not a problem, just deleting previous characters by 
backspace/delete key is the issue.


On Saturday, September 7, 2013 12:09:27 PM UTC-7, Douglas Drumond wrote:
>
> Soft keyboard will show for text input, so you can detect if the text 
> changed.
>
>
> --
> Douglas Drumond
> *eee19.com* 
> *gplus.to/douglasdrumond* 
> *@douglasdrumond* 
>
>
>
> 2013/9/7 jb >
>
>> Hi,
>>
>> I'm looking for some help in how to detect backspace/delete keys when 
>> running on Jelly Bean or later.
>> According to the KeyEvent reference:
>>
>> the default software keyboard will never send any key event to any 
>>> application targeting Jelly Bean or later, and will only send events for 
>>> some presses of the delete and return keys to applications targeting Ice 
>>> Cream Sandwich or earlier
>>
>>
>>  myEditText.setOnKeyListener() does not get called when the backspace is 
>> clicked on a soft keyboard.
>>
>> TIA,
>>
>> jb
>>  
>>
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
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 unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.