Fixed Activity.getActivitiesBy method