add function getActivityManager