Added Application object to share socket between activities