Hi all,
I have managed to create way to set preferences (using this tutorial/framework: http://www.cs.dartmouth.edu/~campbell/cs65/lecture12/lecture12.html
But my question is how would I be able to show the set preference as summary text?
And am I correct in understanding that:
Will get the textpreference set above?
Thanks in advance,
Change
P.s. Yes I am new to coding
I have managed to create way to set preferences (using this tutorial/framework: http://www.cs.dartmouth.edu/~campbell/cs65/lecture12/lecture12.html
But my question is how would I be able to show the set preference as summary text?
Code:
<EditTextPreference
android:key="edittext_preference"
android:title="@string/title_edittext_preference"
android:summary="CURRENT SET PREFERENCE"
android:dialogTitle="@string/dialog_title_edittext_preference" />
And am I correct in understanding that:
Code:
String randomString = getPreferences(MODE_PRIVATE).getString("edittext_preference","default");
Will get the textpreference set above?
Thanks in advance,
Change
P.s. Yes I am new to coding