private void GetInstallReferrer() { int mode = GetIntExtra("mode", CallMode.SDK); Log.Info(TAG, "getInstallReferrer mode=" + mode); if (CallMode.SDK == mode) { // Get install referrer by sdk mode. InstallReferrerSdkUtil sdkUtil = new InstallReferrerSdkUtil(this); sdkUtil.GetInstallReferrer(this); } else if (CallMode.AIDL == mode) { // Get install referrer by aidl mode. InstallReferrerAidUtil aidUtil = new InstallReferrerAidUtil(this); aidUtil.GetInstallReferrer(this); } }
public InstallReferrerServiceConnection(InstallReferrerAidUtil referrerAidUtil) { this.referrerAidUtil = referrerAidUtil; }