Sign in
Ctrl K

SmartPlay

Android OS Wear Application to measure children's activity when playing.

1
contributor
27 commits | Last commit 5 days ago

What SmartPlay can do for you

SmartPlay

Android OS Wear Application to measure children's activity when playing

Setting Workflows

Inside the Device File Explorer, set the workflows file in this path:

/storage/emulated/0/Android/data/com.example.smartplay/files/workflow/workflow.json

You can find the workflow.json demo file in the app/sampledata folder of this repository.

⌚️ Installing the application on the device

Make sure you have adb installed on your computer and the watch is connected to your computer, via usb or wifi. Note: I could only install the application via Wifi Debugging, check the notes below on how to install it.

adb -s <device_id> install -r /path/to/your/app-debug.apk

Path to getting the data from the device: Screenshot 2023-07-24 at 21 50 14

🛜 Connecting the smartwatch via Wifi Debugging

I couldn't make the installation of the application work via usb cable, but yes over wifi debugging.

On the watch

  1. Enable developer options
  2. Enable ADB debugging
  3. Enable Debug over wifi (it will take a moment to establish an ip:port)

Once you have the ip:port, you can connect to the watch via adb

adb connect ip:port

Now you can install the APK: Now, you can install the APK with the adb install command. Replace /path/to/your/app-debug.apk with the path to your APK file:

adb -s ip:port install /path/to/your/app-debug.apk

During the installation, I had to restart the adb server to make it work at times.

adb kill-server
adb start-server

🛠️ Building the App with Android Studio

image

Useful commands

DescriptionCommand
Connect to a deviceadb connect 192.168.1.64:5555
Install appadb -s 192.168.1.148:5555 install ./app-debug.apk
Uninstall appadb -s 192.168.1.148:5555 uninstall com.example.smartplay
List installed packagesadb -s 192.168.1.148:5555 shell pm list packages
Logo of SmartPlay
Keywords
Programming languages
  • Svelte 40%
  • Kotlin 36%
  • TypeScript 21%
  • JavaScript 2%
  • HTML 1%
License
  • Apache-2.0
</>Source code

Contributors