Your task is to write a recorder and player of pen and finger events for Android devices.
You can use the MainActivity as a start.
A sample CSV file is saved in ./TuCAN.csv.
-
The recorder should record ALL touch and hover events, including historical events.
-
Record one "line" for each event, both "main" and "historical".
- The variables that need to be stored are listed in the exemplary CSV file.
- Information about MotionEvent can be found here: https://developer.android.com/reference/android/view/MotionEvent.html
-
Additionally, store the generated SPD-file (i.e., the file containing the S Pen events generated by SpenNoteDoc.save(...), see https://developer.samsung.com/onlinedocs/sms/pen-light/com/samsung/android/sdk/pen/document/SpenNoteDoc.html).
Optionally: store the data not only in a CSV file but in a database of your choice.
The player should be able to replay a stored SPD-file and/or the custom CSV file.
- Distinguish between touch and hover events in color
- Optionally: Add color gradient to hover events based on the pen's distance to the surface
- Add a pause/play button