Harsh, it doesn't make sense that implementing onTouchEvent in a subclassed View would return the soft keyboard's touch events (I want to know which key is pressed on the soft keyboard, so I can draw it in my View).
Also, please email responses to the google group so other's can benefit from this post. On Thu, Mar 24, 2011 at 11:49 PM, harsh chandel <[email protected]>wrote: > ok you have to write the code for on key down > and each time the key is pressed on soft keyboard you capture the event > and do whatever you want to do with on press event > @Override > public boolean onTouchEvent(MotionEvent event) { > if (event.getAction() == MotionEvent.ACTION_DOWN) { > _active = false; > } > > this was what i was talking about > > > On Thu, Mar 24, 2011 at 5:56 PM, Rich E <[email protected]> wrote: > >> >> On Tue, Mar 22, 2011 at 6:14 PM, harsh chandel >> <[email protected]>wrote: >> >>> try ontouch method >>> get x and y coordinate of the area clicked >>> and do as you want on the clicked event >>> >>> >> harsh chandel, I am not sure that I understand you.. I am using >> onTouchEvent() to trigger the keyboard (imm.showSoftInput() code in my last >> post)... but I cannot get the pressed keys of the keyboard. As it is not my >> keyboard (it is the system shared keyboard), I cannot re-implement any >> onTouchEvent method that it may hold, unless I am missing something in your >> suggestion. >> >> There must be some event that I need to listen to (onKeyUp for the soft >> keyboard keys..), but I don't yet know how. >> >> Thanks for the help, >> Rich >> > > -- 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

