diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index b5858d55..46cf91c7 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -52,7 +52,25 @@
+
+
+
+
+
+
+
+
+
+
Tile.STATE_ACTIVE
+ Status.Stopped -> Tile.STATE_INACTIVE
+ else -> Tile.STATE_UNAVAILABLE
+ }
+ updateTile()
+ }
+ }
+
+ override fun onStartListening() {
+ super.onStartListening()
+ connection.connect()
+ }
+
+ override fun onStopListening() {
+ connection.disconnect()
+ super.onStopListening()
+ }
+
+ override fun onClick() {
+ when (connection.status) {
+ Status.Stopped -> {
+ BoxService.start()
+ }
+
+ Status.Started -> {
+ BoxService.stop()
+ }
+
+ else -> {}
+ }
+ }
+
+}
\ No newline at end of file