In your case, that is a constructor and not a func...
# android
a
In your case, that is a constructor and not a function. You also need to have Context and Resources defined as a global variable if you want to hold the reference