I think you misunderstood my question. I do understand about registering listeners for callbacks to my application. My question is about the android system - for all applications.
On Aug 6, 2:44 pm, Feign Narula <feign.nar...@gmail.com> wrote: > Hi, > > There are different listeners and you capture the keys by a KeyEvent > class. > > > > On Sat, Aug 6, 2011 at 3:07 PM, Anil <anil.r...@gmail.com> wrote: > > I built the android source and running it in the Eclipse debugger, am > > trying to understand where is the point in the calling sequence when > > it has all the information about the event. > > So I run the calculator and press key '1'. There is a breakpoint at > > EventListener.onClick() > > In the call stack I see the event being dispatched; ViewRoot calling > > PhoneWindow calling Panel, Layout, Button etc. until the handler is > > reached. > > questions: > > 1) At what earliest point in the call hierarchy can I insert a println > > saying, "Key was pressed, value is 1"? > > 2) At what point does it know whether it was a soft key or a physical > > key? > > > -- > > 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 > > -- > *Feign Narula* > * > * > *Team Lead* > *Phone : +16478634318* > *Linkedln profile :http://ca.linkedin.com/pub/feign-narula/29/54/b82* > *SCJP 5.0 Certified Programmer* > *Curam V6 Certified Developer* > *TOGAF V9 Certified Practitioner* -- 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