corrected getApplicationName so that it gets it from context