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?
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.
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...