Answers for "android global variable"

-1

android global variable

if you use Kotlin, you can just create "object"
object Singletone {
    val BASE_URL:String = "https://www.google.com/"; // put here any variable
    //that you want to access 
}

and just call it like this

baseUrl( Singletone.BASE_URL )
Posted by: Guest on June-29-2021

Browse Popular Code Answers by Language