Changed the appcontext to activity context