added a method in ESSensorManager to return the app context.