40 |
|
|
41 |
CheckBox savetosd = (CheckBox) findViewById(R.id.savetosd); |
CheckBox savetosd = (CheckBox) findViewById(R.id.savetosd); |
42 |
boolean save = prefs.getBoolean("saveimage", false); |
boolean save = prefs.getBoolean("saveimage", false); |
43 |
savetosd.setChecked(save); |
savetosd.setChecked(save); |
44 |
|
|
45 |
|
CheckBox showcaption = (CheckBox) findViewById(R.id.showcaption); |
46 |
|
boolean show = prefs.getBoolean("showcaption", false); |
47 |
|
showcaption.setChecked(show); |
48 |
|
|
49 |
|
|
50 |
Spinner ontouch = (Spinner) findViewById(R.id.ontouch); |
Spinner ontouch = (Spinner) findViewById(R.id.ontouch); |
51 |
ArrayAdapter<?> adapter = ArrayAdapter.createFromResource(this, R.array.ontouchtargets, android.R.layout.simple_spinner_item); |
ArrayAdapter<?> adapter = ArrayAdapter.createFromResource(this, R.array.ontouchtargets, android.R.layout.simple_spinner_item); |
76 |
|
|
77 |
CheckBox savetosd = (CheckBox) findViewById(R.id.savetosd); |
CheckBox savetosd = (CheckBox) findViewById(R.id.savetosd); |
78 |
boolean save = savetosd.isChecked(); |
boolean save = savetosd.isChecked(); |
79 |
|
|
80 |
|
CheckBox showcaption = (CheckBox) findViewById(R.id.showcaption); |
81 |
|
boolean show = showcaption.isChecked(); |
82 |
|
|
83 |
Spinner ontouch = (Spinner) findViewById(R.id.ontouch); |
Spinner ontouch = (Spinner) findViewById(R.id.ontouch); |
84 |
int ontouchsel = ontouch.getSelectedItemPosition(); |
int ontouchsel = ontouch.getSelectedItemPosition(); |
87 |
|
|
88 |
Editor edit = prefs.edit(); |
Editor edit = prefs.edit(); |
89 |
edit.putBoolean("saveimage", save); |
edit.putBoolean("saveimage", save); |
90 |
|
edit.putBoolean("showcaption", show); |
91 |
edit.putInt("ontouch", ontouchsel); |
edit.putInt("ontouch", ontouchsel); |
92 |
edit.commit(); |
edit.commit(); |
93 |
|
|