I am currently struggling with Kotlin for my Bachelor thesis and I have no idea what I am doing.
So here is my problem:
I created a (functional) settings activity with multiple EditTextPreferences and a ListPreference. Right now I want to retrieve the selected item from the ListPreference in another activity. This is my ListPreference:
<ListPreference
android:dialogTitle="Art des Implantates"
android:entries="@array/settings_list_preference_titles"
android:entryValues="@array/settings_list_preference_values"
android:key="list"
android:title="Implantat"
app:useSimpleSummaryProvider="true"/>
So how do I retrieve the selected Item? Let's say I just want to display it somewhere else. I have no clue whatsoever, since every single Tutorial I came across is for java and I don't speak java.
Please help me. I'm desperate.