settings_preferences.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
  3. <PreferenceCategory android:title="@string/pref_notification" >
  4. <CheckBoxPreference
  5. android:defaultValue="true"
  6. android:key="pref_vibration"
  7. android:summary="@string/pref_vibration_summ"
  8. android:title="@string/pref_vibration" />
  9. <RingtonePreference
  10. android:defaultValue="content://settings/system/notification_sound"
  11. android:key="pref_notification_sound"
  12. android:ringtoneType="notification"
  13. android:showDefault="true"
  14. android:showSilent="true"
  15. android:summary="@string/pref_alarm_summ"
  16. android:title="@string/pref_alarm" />
  17. </PreferenceCategory>
  18. <PreferenceCategory android:title="@string/pref_storage" >
  19. <EditTextPreference
  20. android:key="pref_external_location"
  21. android:defaultValue="/HosTaGe/LogFiles/"
  22. android:title="@string/pref_external_location_title"
  23. />
  24. </PreferenceCategory>
  25. <PreferenceCategory android:title="@string/pref_upload" >
  26. <!--<CheckBoxPreference
  27. android:defaultValue="false"
  28. android:key="pref_auto_synchronize"
  29. android:summary="@string/pref_auto_synchronize_summ"
  30. android:title="@string/pref_auto_synchronize_title" />-->
  31. <EditTextPreference
  32. android:key="pref_upload_server"
  33. android:defaultValue="https://ssi.cased.de"
  34. android:title="@string/pref_upload_server" />
  35. <EditTextPreference
  36. android:key="pref_sync_frequency"
  37. android:defaultValue="5"
  38. android:title="@string/pref_sync_frequency_title"
  39. android:summary="@string/pref_sync_frequency_summary"
  40. android:inputType="number"
  41. android:numeric="decimal" />
  42. <!--<EditTextPreference
  43. android:key="pref_download_server"
  44. android:defaultValue="http://ssi.cased.de/api"
  45. android:title="@string/pref_download_server" />-->
  46. </PreferenceCategory>
  47. <PreferenceCategory android:title="@string/advanced_settings">
  48. <PreferenceScreen
  49. android:key="pref_advanced settings"
  50. android:title="@string/advanced_settings"
  51. android:persistent="false">
  52. <PreferenceCategory android:title="@string/pref_connection_settings" >
  53. <EditTextPreference
  54. android:inputType="number"
  55. android:numeric="decimal"
  56. android:key="pref_max_connections"
  57. android:defaultValue="@integer/pref_max_connections_default"
  58. android:title="@string/pref_max_connections"
  59. android:summary="@string/pref_max_connections_summary" />
  60. <EditTextPreference
  61. android:inputType="number"
  62. android:numeric="decimal"
  63. android:key="pref_timeout"
  64. android:defaultValue="@integer/pref_timeout_default"
  65. android:title="@string/pref_timeout"
  66. android:summary="@string/pref_timeout_summary" />
  67. <!--<EditTextPreference
  68. android:inputType="number"
  69. android:numeric="decimal"
  70. android:key="pref_sleeptime"
  71. android:defaultValue="@integer/pref_sleeptime_default"
  72. android:title="@string/pref_sleeptime"
  73. android:summary="@string/pref_sleeptime_summary" />-->
  74. <EditTextPreference
  75. android:inputType="number"
  76. android:numeric="decimal"
  77. android:key="pref_portscan_timeout"
  78. android:defaultValue="@integer/pref_portscan_timeout_default"
  79. android:title="@string/pref_portscan_timeout"
  80. android:summary="@string/pref_portscan_timeout_summary" />
  81. </PreferenceCategory>
  82. <PreferenceCategory android:title="@string/pref_location_settings" >
  83. <EditTextPreference
  84. android:key="pref_location_time"
  85. android:defaultValue="@string/pref_location_time_default"
  86. android:summary="@string/pref_location_time_summary"
  87. android:title="@string/pref_location_time" />
  88. <EditTextPreference
  89. android:key="pref_location_retries"
  90. android:defaultValue="@string/pref_location_retries_default"
  91. android:title="@string/pref_location_retries"
  92. android:summary="@string/pref_location_retries_summary" />
  93. </PreferenceCategory>
  94. </PreferenceScreen>
  95. </PreferenceCategory>
  96. </PreferenceScreen>