Touch Sensor
The touch events sensor captures various types of touch interactions on the device’s screen. This includes single clicks, long clicks, and scrolling actions. The sensor logs details such as the timestamp, device ID, the app in which the event occurred, and specifics of the touch action.
Settings
- Aware_Preferences.STATUS_TOUCH: Set to true or false to activate or deactivate the touch sensor.
Screen.ACTION_AWARE_TOUCH_CLICKED: Broadcasts when a view is clicked.
Screen.ACTION_AWARE_TOUCH_LONG_CLICKED: Broadcasts when a view is long clicked.
Screen.ACTION_AWARE_TOUCH_SCROLLED_UP: Broadcasts when a view is scrolled up.
Screen.ACTION_AWARE_TOUCH_SCROLLED_DOWN: Broadcasts when a view is scrolled down.
TouchData.CONTENT_URI
content://com.aware.provider.touch/touch
Table field | Field type | Description |
---|---|---|
_id | INTEGER | primary key, auto incremented |
timestamp | REAL | unixtime milliseconds since 1970 |
device_id | TEXT | AWARE device UUID |
touch_app | TEXT | The package name of the application where the touch event occurred |
touch_action | INTEGER | The type of touch action: 0 for CLICKED, 1 for LONG_CLICKED, 2 for SCROLLED_UP, 3 for SCROLLED_DOWN, reference to https://developer.android.com/reference/android/view/accessibility/AccessibilityEvent |
touch_action_text | LONGTEXT | Text associated with the touch action, masked if specified in settings |
touch_index_items | INTEGER | The total number of items in the view when the event occurred |
touch_from_index | INTEGER | The starting index of the items when the event began |
touch_to_index | INTEGER | The ending index of the items when the event ended |