You should use a companion object, and use the dot...
# android
j
You should use a companion object, and use the dot to access the property:
Copy code
class MainActivity : Activity() {
    companion object {
        val MSG = "MESSAGE"
    }
}