Let me tell you what i really want, actually i have to show an alert
box saying "max. limit reached" when the characters limit reaches 100,
so for that i need to sense the key events occured and show the alert
box. As of now i am able to detect computer's keys, emulator's
home,power,call,call_end,volume_up/down etc. keys. But im not able to
detect the alphabet keys of softkeyboard.I need a way to capture those
clicks.Anyways, thanx for ur prompt response.

On Jul 2, 3:16 pm, Saurav Mukherjee <to.saurav.mukher...@gmail.com>
wrote:
> well i have not tried capturing the keys from the soft keyboard, but u cud
> try out a round abt method for checking the number of chars exceeded. u cud
> run a thread tht keeps track of the text entered in the edit text box. wen
> it exceeds, delete from the edit text box.
>
> if u have a better sol please share.
> cheers!
>
>
>
> On Thu, Jul 2, 2009 at 3:06 PM, Chris <narendrasingh.bi...@gmail.com> wrote:
>
> > Hi every body
> > I am popping an alert box whenever an user exceeds 100 characters in a
> > text-box(EditTextPreference).
> > Now i am able to capture the hard keyboard's, i.e. computers's
> > keyboard, events, but i am not able to capture the sofkeyboard's key
> > events.
> > There are some keys like numbers, enter, delete etc. in the
> > softkeyboard which i am able to capture using onKey, but i am not able
> > to capture the alphabets and other keys.
> > i also tried setOnKeyboardActionListener, but didnt get the desired
> > results,( may be i was not using it correctly).
> > Can any one suggest how to capture the click of alphabets on the
> > sofkeyboard.
>
> > Thanks a lot..- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to