Code example for Activity

Methods: getInstance, getResources