<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.HOME" /> <category android:name="android.intent.category.DEFAULT" />
Add this intent filter for the activity you want to invoke on the press of home button. On Jun 8, 1:05 pm, TreKing <[email protected]> wrote: > 2011/6/7 执迷不悟 <[email protected]> > > > In Android, how to get the keyevent of 'home Key' ? > > Make a Home replacement app. > > > i want to do something on the 'home Key' onKeydown, but can not get the > > event. > > That's right - you can't. > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

