Android Studio – How to access a string resource from a simple class I created?
Trying to follow good practice of not hardcoding strings in my app, I'm wondering if it is possible to access the string resources from a very simple class which stores strings : class myData { val myString = getString(R.string.name) }…