Skip to content

Instantly share code, notes, and snippets.

@sattvik
Created April 11, 2012 18:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sattvik/2361385 to your computer and use it in GitHub Desktop.
Save sattvik/2361385 to your computer and use it in GitHub Desktop.
HelloActivity.clj
(ns com.example.hello_clojure.HelloActivity
(:gen-class :main false
:extends android.app.Activity
:exposes-methods {onCreate superOnCreate})
(:import [com.example.hello_clojure R$layout]))
(defn -onCreate
[this bundle]
(doto this
(.superOnCreate bundle)
(.setContentView R$layout/main)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment