Thanks for your answer i will try it. :)

On Sat, Oct 15, 2011 at 9:26 PM, martin h <[email protected]> wrote:

> Thanks for your answer i will try it. :)
>
>
> On Sat, Oct 15, 2011 at 6:56 PM, Mark Murphy <[email protected]>wrote:
>
>> On Sat, Oct 15, 2011 at 7:23 AM, martin h <[email protected]> wrote:
>> > Thanks Mark Murphy for your answer. Can i ask some help
>> > @Override
>> >  public boolean onKeyDown(int keyCode, KeyEvent event) {
>> >         // TODO Auto-generated method stub
>> >         switch(keyCode){
>> >         case KeyEvent.KEYCODE_DPAD_DOWN:
>> >             // Do you mean like this... Now it catch down button event
>> when
>> > it pressed
>> >             // What code so that down button not work? Like something
>> for
>> > cancel action button down.
>>
>> You don't do anything, other than return true to indicate you consumed
>> the event.
>>
>> Now, it is entirely possible that you will also need to subclass some
>> widgets in your layout and override onKeyDown() in them as well.
>> onKeyDown() only makes it to the activity for events a widget does not
>> itself handle.
>>
>> Again, I strongly discourage this, as users who use the pointing
>> device will not appreciate what you are doing.
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
>> Available!
>>
>> --
>> 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

Reply via email to