On Wed, Nov 26, 2008 at 4:32 AM, linlone <[EMAIL PROTECTED]> wrote: > I have another question at this time. > As you know, Window Manager Service will fetch all the events from "/ > dev/input/event0", and then remove that fetched event in buffer of "/ > dev/input/event0". > So, Window Manager Service will monopolize this device.
Nobody can monopolize device; linux input devices allow multiple clients to open the device with all of them receiving any generated events. > Here I just have a application, which want to receive all the events > that inputted by user. My question is how to fetch also all the events > from "/dev/input/event0", and do NOT impact the same action by Window > Manager Service. You can just open the device and read from it. Note that your process will need to be in the group that is allowed to access input devices, which is not available to normal applications. There is a command in the system I believe called "getevent" that just opens all of the input devices and prints the low-level events coming out of them. -- Dianne Hackborn Android framework engineer [EMAIL PROTECTED] 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-framework" 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-framework?hl=en -~----------~----~----~----~------~----~------~--~---
