I’m extremely new to android/kotlin, and I’m having trouble with some basics. I have an app that should call the emergency number when a button is clicked, and I’m having trouble getting the emergency number programmatically. I’ve found the EmergencyNumber class, but I’m not sure how to make an object so I can call getNumber(). I’m doing this within a fragment.
I tried val num: EmergencyNumber = EmergencyNumber()
, which gives the “Cannot access ”: it is package-private in ‘EmergencyNumber'” error.
2