Monday, June 13, 2011

[android-developers] Re: In Android, how to get the keyevent of 'home Key' ?

But as Mark Murphy already pointed out in this thread, "Do not request
the HOME category unless *you
are a home screen*."

Mark Murphy is not only an outstanding Android programmer, one with
experience from very early in Android's short history, but one of the
star contributors to this forum, as well as the author of some very
good Android books. No one should disagree with his Android judgments
without a VERY good reason. Simply wanting to ignore the intended
design of Android and intercept the Home key is NOT one of these very
good reasons.

On Jun 7, 11:24 pm, shunty <vikasbisl...@gmail.com> wrote:
> <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 <treking...@gmail.com> wrote:
>
> > 2011/6/7 执迷不悟 <goblin_...@foxmail.com>
>
> > > 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment