Fork me on GitHub
#clojure-android
<
2016-06-14
>
gary00:06:26

I'm guessing defactivity is like our version of gen-class, so this isn't something you can create at the repl

gary01:06:38

I'm still messing with the events app. it shows how to create a fragment and pass data from the fragment to the main activity, so I wanted to show how to pass data between activities

gary01:06:53

just trying to create org.stuff.events.OtherActivity that shows the listing atom in a list view

gary01:06:33

first step, i'm adding a button to the main view to go to the other view and a button on the other view to go back.

gary02:06:10

oh yeah, you can avoid having to write your ui in xml, but you can't avoid xml completely. I need to update my manifest.xml

gary03:06:53

yep that was it, manifest updated, now when I try to start the new activity I get a classCastException it doesn't want my ui tree it wants a character sequence =/ I'm sure I've missed something simple

gary03:06:35

ah it was because I was trying to set the text view with the listing atom which isn't a string anymore, we refactored it to be a sorted-map