Android OS Wear Application to measure children's activity when playing.
An Android OS Wear Application to measure children's activity while playing.
To set up workflows, place the workflows.json
file in the following path via the Device File Explorer:
/storage/emulated/0/Android/data/com.example.smartplay/files/workflows.json
You can find a demo workflows.json
file in the app/sampledata
folder of this repository.
For a Samsung Galaxy Watch v6 and above:
Settings
-> About the watch
-> Software information
.Ensure adb
is installed on your computer and the watch is connected via USB or Wi-Fi.
adb -s <device_id> install -r /path/to/your/app-debug.apk
Note: Installation via Wi-Fi Debugging is recommended. Please refer to the Wi-Fi Debugging section below.
After a recording session, files will be generated and saved in the Documents directory. The filename format is [user_id]_[type]_[device_id]_[timestamp]
.
SENSORS
: Sensors data.AUDIO
: Audio recordings.BT
: Bluetooth scan data.QUESTIONS
: Responses to workflow questions.faaab8a5585c9531
).Example: 1_AUDIO_faaab8a5585c9531_1717009923893.3gp
represents an audio recording for user 1, captured by device faaab8a5585c9531
at the timestamp 1717009923893
.
Files are stored in the internal storage of the app's private directory. They are not directly accessible via the SD card or file explorer apps unless the device is rooted.
If installation via USB doesn't work, follow these steps for Wi-Fi Debugging:
Settings -> Developer options
.Developer options
.ADB debugging
.Wireless debugging
and click + Pair new device
.
adb pair <YOUR_IP_ADDRESS:PORT>
adb connect <YOUR_IP_ADDRESS:PORT>
Once connected, download the SmartPlay application(.apk) and install it on the whatch usin gyour computer terminal:
adb -s ip:port install </path/to/your/app-debug.apk>
If having issues, restart the adb server:
adb kill-server
adb start-server
You can build the app using Android Studio by following the standard build process.
Description | Command |
---|---|
Connect to a device | adb connect 192.168.1.64:5555 |
Install app | adb -s 192.168.1.148:5555 install ./app-debug.apk |
Uninstall app | adb -s 192.168.1.148:5555 uninstall com.example.smartplay |
List installed packages | adb -s 192.168.1.148:5555 shell pm list packages |