I'm working on a slide-unlock program and I want it take the place of
Android KeyguardLock.

there is one last thing todo.it's the home key.

I google it and found we cannnot handle it as the other keys with
"onkeydown","dispatchkeyevent" method.

so I add this
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
to activity.

It does works on AVD!
I think Android receive "home" intent when home key is pressed ,then
it try to find someone to handle the intent.it found two can handle
this.And one of the two happens to my program and my program is on.so
it send the intent to my program .So,the home key is disabled when my
program is running.

But,it does not work on a samsung true phone!!
what can I do,is there any other way to make it??

thanks!
Simon Lee

-- 
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