preference_legacy.xml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:auto="http://schemas.android.com/apk/res-auto">
  4. <PreferenceScreen
  5. android:title="Temperature"
  6. android:key="pref_temperature">
  7. <!-- SwitchPreference
  8. android:key="pref_tmpnbl"
  9. android:title="Enable meCoffee boiler control"
  10. android:summary="Make meCoffee control the boiler"
  11. android:enabled="false"
  12. android:defaultValue="false" / -->
  13. <SwitchPreference
  14. android:key="pref_tmpcntns"
  15. android:title="Continuous mode"
  16. android:summary="Instead of using an interval, dim the boiler"
  17. android:defaultValue="false" />
  18. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  19. android:id="@+id/pref_tmpsp"
  20. android:key="pref_tmpsp"
  21. android:defaultValue="101"
  22. android:dialogMessage="Brew temperature ( Celsius )"
  23. android:max="150"
  24. android:enabled="true"
  25. android:title="Brew temperature"
  26. android:summary="%d degrees"
  27. auto:scale="100"
  28. / -->
  29. <net.jayschwa.android.preference.SliderPreference
  30. android:key="pref_tmpsp"
  31. android:title="Brew temperature ( Celsius )"
  32. android:dialogMessage=""
  33. android:summary="%s, default: 101 °"
  34. android:defaultValue="10100"
  35. android:max="125"
  36. auto:minn="50"
  37. auto:resolution="0.5"
  38. auto:format="%.2f °"
  39. auto:scales="100"
  40. />
  41. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  42. android:id="@+id/pref_tmpstm"
  43. android:key="pref_tmpstm"
  44. android:defaultValue="125"
  45. android:dialogMessage="Steam temperature ( Celsius )"
  46. android:max="150"
  47. android:enabled="true"
  48. android:title="Steam temperature"
  49. android:summary="%d degrees"
  50. auto:scale="100"
  51. / -->
  52. <net.jayschwa.android.preference.SliderPreference
  53. android:key="pref_tmpstm"
  54. android:title="Steam temperature ( Celsius )"
  55. android:dialogMessage=""
  56. android:summary="%s, default: 125 °"
  57. android:defaultValue="12500"
  58. android:max="140"
  59. auto:minn="110"
  60. auto:resolution="0.5"
  61. auto:format="%.2f °"
  62. auto:scales="100"
  63. />
  64. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  65. android:id="@+id/pref_tmppap"
  66. android:key="pref_tmppap"
  67. android:defaultValue="10"
  68. android:dialogMessage="Please select the percentage to increase the boiler power while brewing"
  69. android:max="100"
  70. android:title="Pro Active Percentage"
  71. android:summary="%d %%"
  72. /-->
  73. <net.jayschwa.android.preference.SliderPreference
  74. android:key="pref_tmppap"
  75. android:title="Pro Active Percentage"
  76. android:dialogMessage="Please select the percentage to increase the boiler power while brewing"
  77. android:summary="%s, default: 33 %%"
  78. android:defaultValue="33"
  79. android:max="100"
  80. auto:minn="0"
  81. auto:resolution="1"
  82. auto:format="%.0f %%"
  83. auto:scales="1"
  84. />
  85. <PreferenceScreen
  86. android:title="PID"
  87. android:key="pref_temperature_pid">
  88. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  89. android:id="@+id/pref_pd1p"
  90. android:key="pref_pd1p"
  91. android:defaultValue="10"
  92. android:dialogMessage="Please select the Proportional component"
  93. android:summary="%d, default: 25"
  94. android:max="100"
  95. android:title="Proportional component ( P )"
  96. / -->
  97. <net.jayschwa.android.preference.SliderPreference
  98. android:key="pref_pd1p"
  99. android:title="Proportional component ( P )"
  100. android:dialogMessage="Please select the Proportional component"
  101. android:summary="%s, default: 25"
  102. android:defaultValue="25"
  103. android:max="100"
  104. auto:minn="0"
  105. auto:resolution="1"
  106. auto:format="%.0f"
  107. auto:scales="1" />
  108. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  109. android:id="@+id/pref_pd1i"
  110. android:key="pref_pd1i"
  111. android:defaultValue="10"
  112. android:dialogMessage="Please select the Integral component"
  113. android:max="100"
  114. android:title="Integral component ( I )"
  115. android:summary="%d, default: 3"
  116. / -->
  117. <net.jayschwa.android.preference.SliderPreference
  118. android:key="pref_pd1i"
  119. android:title="Integral component ( I )"
  120. android:dialogMessage="Please select the Integral component"
  121. android:summary="%s, default: 3"
  122. android:defaultValue="3"
  123. android:max="10"
  124. auto:minn="0"
  125. auto:resolution="1"
  126. auto:format="%.0f"
  127. auto:scales="1" />
  128. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  129. android:id="@+id/pref_pd1d"
  130. android:key="pref_pd1d"
  131. android:defaultValue="10"
  132. android:dialogMessage="Please select the Derivative component"
  133. android:max="255"
  134. android:title="Derivative component ( D )"
  135. android:summary="%d, default:128 "
  136. / -->
  137. <net.jayschwa.android.preference.SliderPreference
  138. android:key="pref_pd1d"
  139. android:title="Derivative component ( D )"
  140. android:dialogMessage="Please select the Derivative component"
  141. android:summary="%s, default: 128"
  142. android:defaultValue="128"
  143. android:max="256"
  144. auto:minn="0"
  145. auto:resolution="1"
  146. auto:format="%.0f"
  147. auto:scales="1" />
  148. <!-- ListPreference
  149. android:key="pref_pd1imn"
  150. android:title="Integral ( I ) wind-down minimum"
  151. android:summary="%s, default: 1000"
  152. android:entries="@array/pid_winddown"
  153. android:entryValues="@array/pid_winddown_alias"/ -->
  154. <!-- ListPreference
  155. android:key="pref_pd1imx"
  156. android:title="Integral ( I ) wind-down limit"
  157. android:summary="%s, default: 3000"
  158. android:entries="@array/pid_winddown"
  159. android:entryValues="@array/pid_winddown_alias"/ -->
  160. <net.jayschwa.android.preference.SliderPreference
  161. android:key="pref_pd1imx"
  162. android:title="Integral ( I ) wind-down limit"
  163. android:dialogMessage="The maximum maintenance power, limiting this helps overshoots and oscillation."
  164. android:summary="%s, default: 3750"
  165. android:defaultValue="3750"
  166. android:max="6000"
  167. auto:minn="0"
  168. auto:format="%.0f"
  169. auto:resolution="250"
  170. auto:scales="1"
  171. />
  172. <!-- ListPreference
  173. android:key="pref_pd1sz"
  174. android:title="Polling interval"
  175. android:summary="%s ms, default: 1000 ms"
  176. android:entries="@array/pid_interval"
  177. android:entryValues="@array/pid_interval"/ -->
  178. <net.jayschwa.android.preference.SliderPreference
  179. android:key="pref_pd1sz"
  180. android:title="Polling interval"
  181. android:dialogMessage="Default for continous mode: 1000 ms, default for interval mode: 5000 ms."
  182. android:summary="%s, default: 1000 ms"
  183. android:defaultValue="1000"
  184. android:max="10000"
  185. auto:minn="1000"
  186. auto:format="%.0f ms"
  187. auto:resolution="500"
  188. />
  189. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  190. android:id="@+id/pref_pd1id"
  191. android:key="pref_pd1id"
  192. android:defaultValue="10"
  193. android:dialogMessage="Speed at which the error component reacts ( 10 = default, lower is faster, bigger is slow )"
  194. android:max="50"
  195. min="1"
  196. android:title="I-Speed parameter down"
  197. android:summary="%d, default:10 "
  198. / -->
  199. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  200. android:id="@+id/pref_pd1iu"
  201. android:key="pref_pd1iu"
  202. android:defaultValue="10"
  203. android:dialogMessage="Speed at which the error component reacts ( 10 = default, lower is faster, bigger is slow )"
  204. android:max="50"
  205. min="1"
  206. android:title="Please select the I-Speed parameter down"
  207. android:summary="%d, default:10 "
  208. / -->
  209. <Preference android:title="Help" >
  210. <intent
  211. android:action="android.intent.action.VIEW"
  212. android:data="https://www.mecoffee.nl/mebarista/help/temperature/pid"
  213. />
  214. </Preference>
  215. </PreferenceScreen>
  216. <Preference android:title="Help" >
  217. <intent
  218. android:action="android.intent.action.VIEW"
  219. android:data="https://www.mecoffee.nl/mebarista/help/temperature/"
  220. />
  221. </Preference>
  222. </PreferenceScreen>
  223. <PreferenceScreen
  224. android:title="Pressure"
  225. android:key="pref_pp">
  226. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  227. android:id="@+id/pref_pp_start"
  228. android:key="pref_pp1"
  229. android:defaultValue="100"
  230. android:dialogMessage="Please select pump pressure to start with"
  231. android:max="100"
  232. android:title="At start of pull"
  233. android:summary="%d %%"
  234. android:enabled="true"
  235. / -->
  236. <net.jayschwa.android.preference.SliderPreference
  237. android:key="pref_pp1"
  238. android:title="At start of pull"
  239. android:dialogMessage="Please select pump pressure to start with"
  240. android:summary="%s, default: 100 %%"
  241. android:defaultValue="100"
  242. android:max="100"
  243. auto:minn="0"
  244. auto:resolution="1"
  245. auto:format="%.0f %%"
  246. auto:scales="1"
  247. />
  248. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  249. android:id="@+id/pref_pp_end"
  250. android:key="pref_pp2"
  251. android:defaultValue="70"
  252. android:dialogMessage="Please select pump pressure to end with"
  253. android:max="100"
  254. android:title="At end of pull"
  255. android:summary="%d %%"
  256. android:enabled="true"
  257. / -->
  258. <net.jayschwa.android.preference.SliderPreference
  259. android:key="pref_pp2"
  260. android:title="At end of pull"
  261. android:dialogMessage="Please select pump pressure to end with"
  262. android:summary="%s, default: 100 %%"
  263. android:defaultValue="100"
  264. android:max="100"
  265. auto:minn="0"
  266. auto:resolution="1"
  267. auto:format="%.0f %%"
  268. auto:scales="1"
  269. />
  270. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  271. android:id="@+id/pref_pp_period"
  272. android:key="pref_ppt"
  273. android:defaultValue="25"
  274. android:dialogMessage="Please select the period to taper from the start pressure to the end pressure"
  275. android:max="60"
  276. android:title="Period"
  277. android:enabled="true"
  278. android:summary="%d seconds"
  279. / -->
  280. <net.jayschwa.android.preference.SliderPreference
  281. android:key="pref_ppt"
  282. android:title="Period"
  283. android:dialogMessage="Please select the period to taper from the start pressure to the end pressure"
  284. android:summary="%s, default: 25 s"
  285. android:defaultValue="25"
  286. android:max="60"
  287. auto:minn="0"
  288. auto:resolution="1"
  289. auto:format="%.0f s"
  290. auto:scales="1"
  291. />
  292. <Preference android:title="Help" >
  293. <intent
  294. android:action="android.intent.action.VIEW"
  295. android:data="https://www.mecoffee.nl/mebarista/help/pressure"
  296. />
  297. </Preference>
  298. </PreferenceScreen>
  299. <PreferenceScreen
  300. android:title="Preinfusion"
  301. android:key="pref_pi">
  302. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  303. android:id="@+id/pref_pi_shtmx"
  304. android:key="pref_shtmx"
  305. android:defaultValue="0"
  306. android:dialogMessage="Please select total shot time ( 0 for infinity )"
  307. android:max="40"
  308. android:title="Max shot time"
  309. android:summary="%d seconds"
  310. / -->
  311. <net.jayschwa.android.preference.SliderPreference
  312. android:key="pref_shtmx"
  313. android:title="Max shot time"
  314. android:dialogMessage="Please select maximum shot time"
  315. android:summary="%s, default: 60 s"
  316. android:defaultValue="60"
  317. android:max="60"
  318. auto:minn="0"
  319. auto:resolution="1"
  320. auto:format="%.0f s"
  321. auto:scales="1"
  322. />
  323. <SwitchPreference
  324. android:key="pref_pinbl"
  325. android:title="Enable"
  326. android:summary="Fill the puck first and pull the shot a couple of seconds later"
  327. android:defaultValue="true" />
  328. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  329. android:id="@+id/pref_pi_pump"
  330. android:dependency="pref_pinbl"
  331. android:key="pref_pistrt"
  332. android:defaultValue="3"
  333. android:dialogMessage="Please select pump time in seconds"
  334. android:max="10"
  335. android:title="Pump time"
  336. android:summary="%d seconds"
  337. / -->
  338. <net.jayschwa.android.preference.SliderPreference
  339. android:key="pref_pistrt"
  340. android:dependency="pref_pinbl"
  341. android:title="Pump time"
  342. android:dialogMessage="Please select pump time in seconds"
  343. android:summary="%s, default: 3 s"
  344. android:defaultValue="3"
  345. android:max="10"
  346. auto:minn="0"
  347. auto:resolution="1"
  348. auto:format="%.0f s"
  349. auto:scales="1"
  350. />
  351. <SwitchPreference
  352. android:key="pref_pivlv"
  353. android:dependency="pref_pinbl"
  354. android:title="Close valve while paused"
  355. android:summary=""
  356. android:defaultValue="false" />
  357. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  358. android:id="@+id/pref_pi_pause"
  359. android:dependency="pref_pinbl"
  360. android:key="pref_piprd"
  361. android:defaultValue="3"
  362. android:dialogMessage="Please select pause time in seconds"
  363. android:max="10"
  364. android:title="Pause time"
  365. android:summary="%d seconds"
  366. / -->
  367. <net.jayschwa.android.preference.SliderPreference
  368. android:key="pref_piprd"
  369. android:dependency="pref_pinbl"
  370. android:title="Pause time"
  371. android:dialogMessage="Please select pause time in seconds"
  372. android:summary="%s, default: 3 s"
  373. android:defaultValue="3"
  374. android:max="10"
  375. auto:minn="0"
  376. auto:resolution="1"
  377. auto:format="%.0f s"
  378. auto:scales="1"
  379. />
  380. <Preference android:title="Help" >
  381. <intent
  382. android:action="android.intent.action.VIEW"
  383. android:data="https://www.mecoffee.nl/mebarista/help/preinfusion/"
  384. />
  385. </Preference>
  386. </PreferenceScreen>
  387. <PreferenceScreen
  388. xmlns:android="http://schemas.android.com/apk/res/android"
  389. android:title="Timers"
  390. android:key="pref_timer">
  391. <SwitchPreference
  392. android:key="pref_tmrwnbl"
  393. android:title="Enable"
  394. android:summary="Automatically turn machine on at a certain time"
  395. android:defaultValue="false" />
  396. <nl.digitalthings.mebarista.TimePreference
  397. android:id="@+id/pref_tmron"
  398. android:dependency="pref_tmrwnbl"
  399. android:key="pref_tmron"
  400. android:dialogMessage="Please select the wakeup time"
  401. android:title="Wakeup time"
  402. />
  403. <SwitchPreference
  404. android:key="pref_tmrsnbl"
  405. android:title="Enable"
  406. android:summary="Automatically turn machine off at a certain time"
  407. android:enabled="true"
  408. android:defaultValue="false" />
  409. <nl.digitalthings.mebarista.TimePreference
  410. android:id="@+id/pref_tmroff"
  411. android:dependency="pref_tmrsnbl"
  412. android:key="pref_tmroff"
  413. android:defaultValue="3"
  414. android:dialogMessage="Please select the shutdown time"
  415. android:title="Shutdown time"
  416. android:summary=" seconds"
  417. android:enabled="true"
  418. />
  419. <Preference android:title="Help" >
  420. <intent
  421. android:action="android.intent.action.VIEW"
  422. android:data="https://www.mecoffee.nl/mebarista/help/timer/"
  423. />
  424. </Preference>
  425. </PreferenceScreen>
  426. <PreferenceScreen
  427. android:title="Bluetooth"
  428. android:key="pref_bt">
  429. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  430. android:id="@+id/pref_bt_devicename"
  431. android:key="pref_btname"
  432. android:defaultValue="meCoffee"
  433. android:title="Device name"
  434. android:summary="Connected device has name '%s'"
  435. />
  436. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  437. android:id="@+id/pref_bt_devicename_prefix"
  438. android:key="pref_bt_devicename_prefix"
  439. android:defaultValue="meCoffee"
  440. android:title="Device name prefix"
  441. android:summary="Devices wich names start with '%s' will be automatically connected"
  442. />
  443. <SwitchPreference
  444. android:key="pref_bt_bt2_enabled"
  445. android:title="Enable BT2 / Classic"
  446. android:summary="Scans for BT2 / Classic devices"
  447. android:defaultValue="true" />
  448. <SwitchPreference
  449. android:key="pref_bt_ble_enabled"
  450. android:title="Enable BLE / Bluetooth Low Energy"
  451. android:summary="Scans for BLE / Bluetooth Low Energy devices"
  452. android:defaultValue="false" />
  453. <SwitchPreference
  454. android:key="pref_bt_disable"
  455. android:title="Disable on close"
  456. android:summary="Disable Bluetooth adapter if App is closed"
  457. android:defaultValue="false" />
  458. <SwitchPreference
  459. android:key="pref_bt_keepdiscovering"
  460. android:title="Keep discovering"
  461. android:summary="Keep discovering devices when not connected"
  462. android:enabled="true"
  463. android:defaultValue="false" />
  464. <!-- nl.digitalthings.mebarista.PreferencesNumberPicker
  465. android:id="@+id/pref_bt_scanlimit_minutes"
  466. android:dependency="pref_bt_scanlimit"
  467. android:key="pref_pt_scanlimit_minutes"
  468. android:defaultValue="3"
  469. android:dialogMessage="Please select scan time in minutues"
  470. android:max="10"
  471. android:title="Bluetooth scan time"
  472. android:enabled="false"
  473. android:summary=" minutes"
  474. / -->
  475. <Preference android:title="Help" >
  476. <intent
  477. android:action="android.intent.action.VIEW"
  478. android:data="https://www.mecoffee.nl/mebarista/help/bluetooth/"
  479. />
  480. </Preference>
  481. </PreferenceScreen>
  482. <PreferenceScreen
  483. android:title="User interface"
  484. android:key="pref_ui">
  485. <SwitchPreference
  486. android:key="pref_ui_graph_enable"
  487. android:title="Enable graph"
  488. android:summary="Show the temperature graph on the background"
  489. android:defaultValue="true" />
  490. <ListPreference
  491. android:key="pref_ui_graph_history"
  492. android:title="Graph history"
  493. android:dependency="pref_ui_graph_enable"
  494. android:entries="@array/graph_history"
  495. android:entryValues="@array/graph_history_alias"/>
  496. <SwitchPreference
  497. android:id="@+id/pref_ui_second_sensor"
  498. android:key="pref_ui_second_sensor"
  499. android:title="Show second sensor"
  500. android:summary=""
  501. android:defaultValue="false" />
  502. <CheckBoxPreference
  503. android:key="pref_ui_tempcontrol_enable"
  504. android:title="Enable temperature control"
  505. android:defaultValue="false" />
  506. <SwitchPreference
  507. android:id="@+id/pref_ui_background"
  508. android:key="pref_ui_background"
  509. android:title="Show background"
  510. android:summary=""
  511. android:defaultValue="true" />
  512. <SwitchPreference
  513. android:id="@+id/pref_ui_logging"
  514. android:key="pref_ui_logging"
  515. android:title="Show logging"
  516. android:summary=""
  517. android:defaultValue="false" />
  518. <SwitchPreference
  519. android:id="@+id/pref_ui_screenwake"
  520. android:key="pref_ui_screenwake"
  521. android:title="Prevent screen sleep"
  522. android:summary=""
  523. android:defaultValue="false" />
  524. <Preference android:title="Help" >
  525. <intent
  526. android:action="android.intent.action.VIEW"
  527. android:data="https://www.mecoffee.nl/mebarista/help/userinterface/"
  528. />
  529. </Preference>
  530. </PreferenceScreen>
  531. <!-- PreferenceScreen
  532. android:title="Statistics"
  533. android:key="pref_statistics">
  534. <nl.digitalthings.mebarista.PreferencesNumberPicker
  535. android:id="@+id/pref_grndr_cnt"
  536. android:key="pref_grndr_cnt"
  537. android:defaultValue="0"
  538. android:dialogMessage="The times the grinder has grinded!"
  539. android:enabled="false"
  540. android:selectable="false"
  541. android:shouldDisableView="false"
  542. android:title="Grinder counter"
  543. android:summary=" times"
  544. android:max="65000"
  545. />
  546. <Preference android:title="Help" >
  547. <intent
  548. android:action="android.intent.action.VIEW"
  549. android:data="https://www.mecoffee.nl/mebarista/help/statistics"
  550. />
  551. </Preference>
  552. </PreferenceScreen !-->
  553. <PreferenceScreen
  554. android:title="Hardware"
  555. android:key="pref_hardware">
  556. <SwitchPreference
  557. android:key="pref_tmrpwr"
  558. android:title="Installed as timer"
  559. android:summary="Prevent warmup after power outage"
  560. android:enabled="true"
  561. android:defaultValue="false" />
  562. <PreferenceScreen
  563. android:title="Firmware"
  564. android:key="pref_firmware">
  565. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  566. android:id="@+id/pref_uname"
  567. android:key="pref_uname"
  568. android:defaultValue=""
  569. android:title="Device firmware"
  570. android:summary="Running version: %s"
  571. />
  572. <!-- nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  573. android:id="@+id/pref_fw_pin"
  574. android:key="pref_fw_pin"
  575. android:defaultValue=""
  576. android:title="Pin code required for flashing"
  577. android:summary="'%s'"
  578. / -->
  579. <SwitchPreference
  580. android:id="@+id/pref_support_fw_enable"
  581. android:key="pref_support_fw_enable"
  582. android:title="Enable"
  583. android:summary="Enable Flash Firmware button, only use this if you know what you are doing."
  584. android:defaultValue="false" />
  585. <Preference android:title="Flash firmware V4 ( legacy )"
  586. android:summary="Once clicked, the App will reflash your coffee-machine. Use with extreme care."
  587. android:dependency="pref_support_fw_enable"
  588. android:enabled="false">
  589. <intent android:targetPackage="nl.digitalthings.mebarista"
  590. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  591. android:data="flashfirmware_V4"
  592. android:dependency="pref_support_fw_enable"
  593. />
  594. </Preference>
  595. <Preference android:title="Flash firmware V9 ( newest )"
  596. android:summary="Once clicked, the App will reflash your coffee-machine. Use with extreme care."
  597. android:dependency="pref_support_fw_enable"
  598. android:enabled="true">
  599. <intent android:targetPackage="nl.digitalthings.mebarista"
  600. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  601. android:data="flashfirmware_V9"
  602. android:dependency="pref_support_fw_enable"
  603. />
  604. </Preference>
  605. <ListPreference
  606. android:key="pref_fw_timing"
  607. android:title="Flash timing"
  608. android:dependency="pref_support_fw_enable"
  609. android:defaultValue="250"
  610. android:entries="@array/fw_timing"
  611. android:entryValues="@array/fw_timing_alias"/>
  612. <Preference android:title="Help" >
  613. <intent
  614. android:action="android.intent.action.VIEW"
  615. android:data="https://www.mecoffee.nl/mebarista/help/hardware/firmware/"
  616. />
  617. </Preference>
  618. </PreferenceScreen>
  619. <Preference android:title="Help" >
  620. <intent
  621. android:action="android.intent.action.VIEW"
  622. android:data="https://www.mecoffee.nl/mebarista/help/hardware/"
  623. />
  624. </Preference>
  625. </PreferenceScreen>
  626. <PreferenceScreen
  627. android:title="Support"
  628. android:key="pref_support">
  629. <nl.digitalthings.mebarista.EditTextPreferenceWithSummary
  630. android:id="@+id/pref_support_email"
  631. android:key="pref_support_email"
  632. android:defaultValue="support@yourdealer.com"
  633. android:title="Helpdesk email address"
  634. android:summary="Support tickets are sent to '%s' by default"
  635. />
  636. <Preference android:title="Support ticket" >
  637. <intent android:targetPackage="nl.digitalthings.mebarista"
  638. android:targetClass="nl.digitalthings.mebarista.MainActivity"
  639. android:data="supportticket" />
  640. </Preference>
  641. <Preference android:title="Credits and Licenses" >
  642. <intent
  643. android:action="android.intent.action.VIEW"
  644. android:data="http://www.mecoffee.nl/mebarista/credits/"
  645. />
  646. </Preference>
  647. <Preference android:title="Help" >
  648. <intent
  649. android:action="android.intent.action.VIEW"
  650. android:data="http://www.mecoffee.nl/mebarista/help/support/"
  651. />
  652. </Preference>
  653. </PreferenceScreen>
  654. </PreferenceScreen>