Try casting Context to Activity before setReferralSources