	public void onClickLiveMap(View view) {
		boolean activated = liveMapButton.isChecked();
		boolean periodicUpdateEnabled = true;
		try {
			periodicUpdateEnabled = isPeriodicUpdateEnabled(this);
		} catch (Exception e) {
			Log.e(TAG, "Unable to receive info about current state of prediodic update events from Locus.", e);
		}
		if (activated && !periodicUpdateEnabled) {
			activated = false;
			liveMapButton.setChecked(activated);
			Toast.makeText(this, getText(R.string.livemap_disabled), Toast.LENGTH_LONG).show();
		} else if (activated) {
			Toast.makeText(this, getText(R.string.livemap_activated), Toast.LENGTH_LONG).show();
		} else {
			Toast.makeText(this, getText(R.string.livemap_deactivated), Toast.LENGTH_LONG).show();
		}
		prefs.edit().putBoolean(PrefConstants.LIVE_MAP, activated).commit();
		if (LocusUtils.isIntentMainFunction(getIntent())) {
			finish();
		}
	}

	public void onClickLiveMap(View view) {
		boolean activated = liveMapButton.isChecked();
		boolean periodicUpdateEnabled = true;
		try {
			periodicUpdateEnabled = isPeriodicUpdateEnabled(this);
		} catch (Exception e) {
			Log.e(TAG, "Unable to receive info about current state of periodic update events from Locus.", e);
		}
		if (activated && !periodicUpdateEnabled) {
			activated = false;
			liveMapButton.setChecked(activated);
			Toast.makeText(this, getText(R.string.livemap_disabled), Toast.LENGTH_LONG).show();
		} else if (activated) {
			Toast.makeText(this, getText(R.string.livemap_activated), Toast.LENGTH_LONG).show();
		} else {
			Toast.makeText(this, getText(R.string.livemap_deactivated), Toast.LENGTH_LONG).show();
		}
		prefs.edit().putBoolean(PrefConstants.LIVE_MAP, activated).commit();
		if (LocusUtils.isIntentMainFunction(getIntent())) {
			finish();
		}
	}
