implement exchange mechanism between activity and service