Change isBatteryCritical to private so that it can be called by the MainActivityView class