I am trying to update my menu, because its really hard to create a useable menu between the not always available menukey und new methodes like context menu. As i'm heading at an universal solution i tried setting up an PreferencesActivity, like this
Now i have a preference
<Preference android:title="@string/pref_sup" >
</Preference>
that should work as a button or item in an regular OptionsMenu: if i click the above preference in the PreferencesActivity i want in my main activity (from where i startet the PreferencesActivity) afunction to be called.
I done some research (OnSharedPreferencesListener, ActivityForResult, onClickListener in the PreferencesActivity) but don't found any solution.
I hope somone understands waht im trying to do! Thanks in advance greetings ueen
0 comments:
Post a Comment