Record User Actions in Android
Is there any way to record user actions in android. Like if someone clicks a button or enters a text, how to identify those actions. Is this possible in an emulator atleast. Any help on 开发者_如何学Gothis would be appreciated.
Thanks,
Every view has its event listeners. You can browse the documentation and find which listeners are supported by every view. For example, you can register onClickListener
on your view, then you will receive the event and you can process it. You should check the documentation at developer.android.com to get more info. Good luck!
Depends on what you want to do exactly. You could override the onUserInteraction() of an activity, wich is fired every time the user interacts with that activity. If you want a more specific logging you will need to create custom buttons (extending the normal button and add some functionality) that sends the logging data to a central point for logging.
精彩评论