abrenoch / hyperion-android-grabber

Screen grabber for hyperion
MIT License
188 stars 31 forks source link

Add toggle intent to specify whether service should be on or off #195

Closed lordjaxom closed 1 year ago

lordjaxom commented 1 year ago

I wanted to integrate the grabber into my OpenHAB home automation. Since the start on boot seems not to be working in 1.1 beta I added an extra flag to tell ToggleActivity whether the service should be on or off (or toggled if the extra flag is absent).

Can be invocated by adb via

adb shell am start -n com.abrenoch.hyperiongrabber/com.abrenoch.hyperiongrabber.common.ToggleActivity --ez "com.abrenoch.hyperiongrabber.TOGGLE_INTENT" true

lordjaxom commented 1 year ago

Sorry, wrong base branch :-(