 (defn save-locally! [activity instruction]
   (when-let [name (:name instruction)]
     (when-let [url (:url instruction)]
+      (log/i "darknet" "getting bytes...")
       (server/get-bytes url
                         (fn [bytes]
-                          (storage/write-bytes! bytes name))))))
+                          (log/i "darknet" "writing bytes...")
+                          (storage/write-bytes! bytes name)
+                          (on-ui
+                              (toast (str "Saved " name))))))))
 
 (defn view-local [activity instruction]
   (when-let [name (:name instruction)]

    (case (:type instruction)
      "image" (layout activity (image-from-url activity url))
      "video" (layout activity (video-from-path activity url)))))

(def idle-screen
  [:relative-layout {:layout-width :fill
                     :layout-height :fill}
   [:text-view {:text " °"
                :id ::status-indicator
                :text-size 50
                :text-color Color/GREEN}]])

(defn set-status! [context color]
  (on-ui

                            :on-error (fn [e]
                                        (log/i "darknet on error" (.getMessage e))
                                        (set-status! this Color/RED)
                                        (Thread/sleep 200))})))]
          (new-client)))
      (on-ui
          (set-content-view! this
