implemented communication between agents and activities in android
boh