Repository navigation
Expand file tree
/
Copy pathpreferences.xml
More file actions
84 lines (76 loc) · 3.87 KB
/
Copy pathpreferences.xml
File metadata and controls
84 lines (76 loc) · 3.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory android:title="Settings" >
<!--the key for these settings come frmo the PreferenceConstants.java file
they are accessed like this:
SharedPreferences prefs = getSharedPreferences(PreferenceConstants.PREFERENCE_NAME, MODE_PRIVATE);
mOutputDir = prefs.getString(PreferenceConstants.OUTPUT_IMAGE_DIRECTORY, "/sdcard/BacteriaCounting/watersamples/");
mSampleCodeCount = prefs.getInt(PreferenceConstants.PREFERENCE_WATER_SAMPLE_ID, 0);
-->
<EditTextPreference
android:defaultValue="AA"
android:dialogTitle="Enter your code"
android:key="experimenterId"
android:persistent="true"
android:summary="Experimenter who tested sample"
android:title="Experimenter code" />
<EditTextPreference
android:defaultValue="13000000AA00000"
android:dialogTitle="The water sample code is auto-generated, you don't need to edit this."
android:key="watersampleId"
android:persistent="true"
android:summary="Autogenerated TimeStamp ExperimenterInitials SampleCount eg 13000000AA12301"
android:title="Water Sample ID" />
-->
</PreferenceCategory>
<PreferenceCategory android:title="Upload Settings" >
<EditTextPreference
android:defaultValue="/sdcard/BacteriaCounting/watersamples/"
android:dialogTitle="The directory where images will be saved, you don't need to edit this."
android:key="ouputdir"
android:persistent="true"
android:summary="Output Directory"
android:title="Output Directory" />
<EditTextPreference
android:defaultValue="http://contactyourmp.ca/bacteriacounter/default/addreport"
android:dialogTitle="The url where images will be uploaded."
android:key="webserverurl"
android:persistent="true"
android:summary="Upload to Server"
android:title="Upload to Server" />
</PreferenceCategory>
<PreferenceCategory android:title="About" >
<PreferenceScreen android:title="Visit Website" >
<intent
android:action="android.intent.action.VIEW"
android:data="http://www.rhok.org/solutions/android-image-pattern-recognition-and-upload" />
<Preference
android:enabled="false"
android:selectable="false"
android:summary="@string/preference_about_summary"
android:title="@string/preference_about_title" />
<Preference
android:enabled="false"
android:selectable="false"
android:summary="@string/preference_thanks_summary"
android:title="@string/preference_thanks_title" />
<Preference
android:enabled="false"
android:selectable="false"
android:summary="@string/preference_licence_summary"
android:title="@string/preference_licence_title" />
</PreferenceScreen>
</PreferenceCategory>
</PreferenceScreen>