But I do see some screensavers diable it, I just wondering how can they do that?
2009/11/3 Romain Guy <[email protected]> > You can't. > > On Mon, Nov 2, 2009 at 6:51 AM, kyo xiaoyi <[email protected]> wrote: > > I try to rewrite the method onKeyDown, like this: > > > > @Override > > public boolean onKeyDown (int keyCode, KeyEvent event){ > > if((keyCode == KeyEvent.KEYCODE_MENU) > > ||(keyCode == KeyEvent.KEYCODE_POWER)){ > > super.onKeyDown(keyCode, event); > > return false; > > } > > else{ > > return true; > > } > > } > > > > it works for the other keys, but not for "HOME". How can I disable it? > > Thanks! > > > > -- > > 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]<android-developers%[email protected]> > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en > > > > > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > > -- > 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]<android-developers%[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

