<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
	<PreferenceCategory android:title="@string/pref_notification" >
		<CheckBoxPreference
				android:defaultValue="true"
				android:key="pref_vibration"
				android:summary="@string/pref_vibration_summ"
				android:title="@string/pref_vibration" />

		<RingtonePreference
				android:defaultValue="content://settings/system/notification_sound"
				android:key="pref_notification_sound"
				android:ringtoneType="notification"
				android:showDefault="true"
				android:showSilent="true"
				android:summary="@string/pref_alarm_summ"
				android:title="@string/pref_alarm" />
	</PreferenceCategory>

	<PreferenceCategory android:title="@string/pref_storage" >
		<EditTextPreference
				android:key="pref_external_location"
				android:defaultValue="/HosTaGe/LogFiles/"
				android:title="@string/pref_external_location_title"
				/>
	</PreferenceCategory>

	<PreferenceCategory android:title="@string/pref_upload" >
		<!--<CheckBoxPreference
			android:defaultValue="false"
			android:key="pref_auto_synchronize"
			android:summary="@string/pref_auto_synchronize_summ"
			android:title="@string/pref_auto_synchronize_title" />-->

		<EditTextPreference
				android:key="pref_upload_server"
				android:defaultValue="https://ssi.cased.de"
				android:title="@string/pref_upload_server" />

        <EditTextPreference
            android:key="pref_download_server"
            android:defaultValue="http://ssi.cased.de/api"
            android:title="@string/pref_download_server" />

        <MultiSelectListPreference
            android:dialogTitle="@string/pref_sync_countries_dialog"
            android:key="pref_sync_countries"
            android:summary="@string/pref_sync_countries_desc"
            android:title="@string/pref_sync_countries"
            android:entries="@array/pref_sync_countries_default"
            android:entryValues="@array/pref_sync_countries_default"
            />
	</PreferenceCategory>

	<PreferenceCategory android:title="@string/advanced_settings">
		<PreferenceScreen
				android:key="pref_advanced settings"
				android:title="@string/advanced_settings"
				android:persistent="false">
			<PreferenceCategory android:title="@string/pref_connection_settings" >
				<EditTextPreference
						android:key="pref_max_connections"
						android:defaultValue="@string/pref_max_connections_default"
						android:title="@string/pref_max_connections" />

				<EditTextPreference
						android:key="pref_timeout"
						android:defaultValue="@string/pref_timeout_default"
						android:summary="@string/pref_timeout_summary"
						android:title="@string/pref_timeout" />

				<EditTextPreference
						android:key="pref_sleeptime"
						android:defaultValue="@string/pref_sleeptime_default"
						android:summary="@string/pref_sleeptime_summary"
						android:title="@string/pref_sleeptime" />
			</PreferenceCategory>
            <PreferenceCategory android:title="@string/pref_location_settings" >
                <EditTextPreference
                    android:key="pref_location_time"
                    android:defaultValue="@string/pref_location_time_default"
                    android:summary="@string/pref_location_time_summary"
                    android:title="@string/pref_location_time" />

                <EditTextPreference
                    android:key="pref_location_retries"
                    android:defaultValue="@string/pref_location_retries_default"
                    android:title="@string/pref_location_retries" />

            </PreferenceCategory>
		</PreferenceScreen>
	</PreferenceCategory>
</PreferenceScreen>