Hi All,

I refer to 
http://developer.android.com/intl/zh-TW/reference/android/Manifest.permission.html
and find "android.permission.INJECT_EVENTS"  as below description.

----------------------------------------------------------------------------------------------------------------------
Allows an application to inject user events (keys, touch, trackball)
into the event stream and deliver them to ANY window. Without this
permission, you can only deliver events to windows in your own
process. Very few applications should need to use this permission.
----------------------------------------------------------------------------------------------------------------------

So, I use "<uses-permission
android:name="android.permission.INJECT_EVENT"/> or "<assign-
permission android:name="android.permission.INJECT_EVENT"/>" and add
them into AndroidManifest.xml of my activity to disable key event.

But, when my activity is running, I still could use key, such as home
key..

Would you tell me if I use the wrong method?
or
This permission is not allowed for activity.

Thanks a lot.

Sincerely,
Morris

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

Reply via email to