For testing purposes, I would like to stop and restart my Android Wear watch face service via ADB. Stopping it appears to work normally:
adb shell am force-stop com.package.name
but starting the service back up again has me stumped. Watch faces are not activities, so it cannot be started via am start
. I attempted to use the monkey
command on the package, but that didn't work. I tried starting the service manually:
adb shell am startservice com.package.name/.watch_face_service
but that doesn't seem to work; either the service isn't started, or the service IS started but is not the current wallpaper.
It MUST be possible, since Eclipse manages to start the watch face when I run or debug it. But how?