              ~(when (and (not (:neko.init/release-build *compiler-options*))
                          def)
                 `(def ~(vary-meta def assoc :tag name) ~'this))
+             (.put all-activities ~(or key *ns*) ~'this)
              (neko.init/init (.getApplicationContext ~'this))
              (~on-create ~'this ~'savedInstanceState)))
        ~(when on-create-options-menu

                                                k))))))]
    (doall (map request-feature features))))

(defmacro defactivity
  "Creates an activity with the given full package-qualified name.
  Optional arguments should be provided in a key-value fashion.

(ns neko.activity
  "Utilities to aid in working with an activity."
  {:author "Daniel Solano Gómez"}
  (:require neko.init
            [neko.ui :refer [make-ui]]
            [neko.-utils :refer :all])
  (:import android.app.Activity
           android.view.View
           android.app.Fragment
           java.util.WeakHashMap))

(def
  ^{:doc "The current activity to operate on."
