settings_preferences.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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_download_server"
  37. android:defaultValue="http://ssi.cased.de/api"
  38. android:title="@string/pref_download_server" />-->
  39. </PreferenceCategory>
  40. <PreferenceCategory android:title="@string/advanced_settings">
  41. <PreferenceScreen
  42. android:key="pref_advanced settings"
  43. android:title="@string/advanced_settings"
  44. android:persistent="false">
  45. <PreferenceCategory android:title="@string/pref_connection_settings" >
  46. <EditTextPreference
  47. android:inputType="number"
  48. android:numeric="decimal"
  49. android:key="pref_max_connections"
  50. android:defaultValue="@integer/pref_max_connections_default"
  51. android:title="@string/pref_max_connections"
  52. android:summary="@string/pref_max_connections_summary" />
  53. <EditTextPreference
  54. android:inputType="number"
  55. android:numeric="decimal"
  56. android:key="pref_timeout"
  57. android:defaultValue="@integer/pref_timeout_default"
  58. android:title="@string/pref_timeout"
  59. android:summary="@string/pref_timeout_summary" />
  60. <!--<EditTextPreference
  61. android:inputType="number"
  62. android:numeric="decimal"
  63. android:key="pref_sleeptime"
  64. android:defaultValue="@integer/pref_sleeptime_default"
  65. android:title="@string/pref_sleeptime"
  66. android:summary="@string/pref_sleeptime_summary" />-->
  67. <EditTextPreference
  68. android:inputType="number"
  69. android:numeric="decimal"
  70. android:key="pref_portscan_timeout"
  71. android:defaultValue="@integer/pref_portscan_timeout_default"
  72. android:title="@string/pref_portscan_timeout"
  73. android:summary="@string/pref_portscan_timeout_summary" />
  74. </PreferenceCategory>
  75. <PreferenceCategory android:title="@string/pref_location_settings" >
  76. <EditTextPreference
  77. android:key="pref_location_time"
  78. android:defaultValue="@string/pref_location_time_default"
  79. android:summary="@string/pref_location_time_summary"
  80. android:title="@string/pref_location_time" />
  81. <EditTextPreference
  82. android:key="pref_location_retries"
  83. android:defaultValue="@string/pref_location_retries_default"
  84. android:title="@string/pref_location_retries"
  85. android:summary="@string/pref_location_retries_summary" />
  86. </PreferenceCategory>
  87. </PreferenceScreen>
  88. </PreferenceCategory>
  89. </PreferenceScreen>