add application and activitymanger