Serialize Activity and Service data