https://kotlinlang.org logo
#android
Title
# android
s

serepasf

10/23/2018, 8:02 AM
Hello I an activity with two buttons. First I take a photo and in override onactivityresult I upload the photo in firebase and I get an url which I save to photoUrl . Then in the other btn listener inside oncreate I want to use this variable but I get null as I define it in the begin of the class. How can I get the value of photoUrl which I want? https://gist.github.com/spartakos87/e0d492c7f2a9af76638bb50d05a30a46
stackoverflow 8
e

edwardwongtl

10/23/2018, 8:35 AM
Please note this is a android channel inside a Kotlin slack, which means the discussion should be related to Kotlin, and in this specific channel, should be discussions related to the usage of Kotlin in Android.
s

serepasf

10/23/2018, 9:48 AM
Ok. So what is the problem? I think my question is realted with the scope of variables. I use kotlin to write android app...
4 Views