I need to determine if a user has interacted with the screen, keyboard, or trackball from a background service. I don't need to know coordinates, or actual keystrokes. I just need to understand if they have interacted with the phone in any way. Anyone have any creative ways to do this?
It would be great if the screen/keyboard/keys/trackball were available in a manner similar to the other Sensors available on the phone, but it seems that access to input devices is restricted in services as part of Android security policies. Based on my research, I'm not finding much of a possibility, so here's what I'm considering: - using information related to the current processes/activities via ActivityManager to guess if an activity is being interacted with. Possibly the amount of CPU time would increase more rapidly if the user is typing or touching the screen? Seems fairly unreliable... - using one of the sensors to attempt to determine interaction with the phone. Acceleromter fluctuations, magnetic field fluctuations, tricorder :). - something else? Thanks for any creative suggestions. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

