public GpsLocationService(Context context, ISettingWindowCloseListener settingWindowListener = null) { this.mContext = context; this.settingWindowListener = settingWindowListener; this.sharedPreferencesHelper = new SharedPreferencesHelper(context); this.location = GetLocation(); }
public static GpsLocationService GetServiceInstance(Context context, ISettingWindowCloseListener listener = null) { if (serviceInstance == null) { serviceInstance = new GpsLocationService(context, listener); } return(serviceInstance); }
public GpsLocationService(Context context, ISettingWindowCloseListener settingWindowListener) { this.mContext = context; this.settingWindowListener = settingWindowListener; this.sharedPreferencesHelper = new SharedPreferencesHelper(context); this.location = GetLocation(); }