Skip to content

Stop, Pause & Resume

Stop all location mocking and shut down the GPS JoyStick service.

Action: theappninjas.gpsjoystick.STOP Tier: Free Extras: None

  1. Create a new Task → Add Action → Misc → Send Intent
  2. Set Action to theappninjas.gpsjoystick.STOP
  3. Set Target to Service
Terminal window
# Android 8.0+
adb shell am start-foreground-service -a theappninjas.gpsjoystick.STOP
# Older Android
adb shell am startservice -a theappninjas.gpsjoystick.STOP

Pause the currently active route. The mocked location remains at the current position.

Action: theappninjas.gpsjoystick.ROUTE_PAUSE Tier: Pro Extras: None

Error: Returns NOT_WALKING if no route is currently walking.

Terminal window
adb shell am start-foreground-service -a theappninjas.gpsjoystick.ROUTE_PAUSE

Resume a previously paused route from where it stopped.

Action: theappninjas.gpsjoystick.ROUTE_RESUME Tier: Pro Extras: None

Error: Returns NO_ROUTE_ACTIVE if no route is loaded.

Terminal window
adb shell am start-foreground-service -a theappninjas.gpsjoystick.ROUTE_RESUME

Skip forward to the next waypoint in the active route.

Action: theappninjas.gpsjoystick.ROUTE_NEXT Tier: Pro Extras: None

Error: Returns NO_ROUTE_ACTIVE if no route is loaded.

Terminal window
adb shell am start-foreground-service -a theappninjas.gpsjoystick.ROUTE_NEXT

Go back to the previous waypoint in the active route.

Action: theappninjas.gpsjoystick.ROUTE_PREV Tier: Pro Extras: None

Error: Returns NO_ROUTE_ACTIVE if no route is loaded.

Terminal window
adb shell am start-foreground-service -a theappninjas.gpsjoystick.ROUTE_PREV

Terminal window
# Start a route
adb shell am start-foreground-service \
-a theappninjas.gpsjoystick.ROUTE \
--es name "Daily Walk"
# Pause after a while
adb shell am start-foreground-service \
-a theappninjas.gpsjoystick.ROUTE_PAUSE
# Skip forward a waypoint
adb shell am start-foreground-service \
-a theappninjas.gpsjoystick.ROUTE_NEXT
# Resume from the new position
adb shell am start-foreground-service \
-a theappninjas.gpsjoystick.ROUTE_RESUME
# Stop completely
adb shell am start-foreground-service \
-a theappninjas.gpsjoystick.STOP