OK so you say you can't override the Home Key... Then how does the "Toddler Lock" program work? The only think you can do to unlock that prog is through the provided key combination, four corner touch, or long press power and initiate shut down. What exactly are they doing to accomplish this? They are either temporarily overriding the home screen itself and therefore when you press the home key it is technically taking you to the "Home" screen and you still see "Toddler Lock" because home has been replaced.....Or, "Toddler Lock" is some how set over the homepage. Or....... Well I guess thats the question... Or what else? What is happening? Why does "Toddler Lock" appear to be overriding "Home" key?
On Nov 2, 1:44 pm, Romain Guy <romain...@google.com> wrote: > You can't. > > > > > > On Mon, Nov 2, 2009 at 6:51 AM, kyo xiaoyi <kyored...@gmail.com> 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 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 > > -- > Romain Guy > Android framework engineer > romain...@android.com > > 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 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