[TIMOB-2264] Android: Support native PreferenceActivity
Like iPhone has a settings bundle, Android can use a Preferences XML file to open a standard preference UI.
- Manuel Lehner 2015-07-28 Should be closed
- Andrew McElroy 2017-03-09
This should NOT be closed until a complete code example ( including getting and setting keys) exists.
Currently it is documented how to create a preferences.xml file, where to place it, and how to activate it
but it is completely undocumented as to how to make use of the properties in this xml file from within Titanium. One would assume that it works exactly like a Settings.bundle on iOS, but i'm not seeing anything in PreferencesFragment show up in my Ti.App.Properties. Looking at the implementation of this API, it appears that the keys might be buried somewhere in the Android R object. Please advise.
- Andrew McElroy 2017-03-10 Turns out that there is documentation: https://github.com/appcelerator/titanium_mobile/blob/master/apidoc/Titanium/UI/Android/Android.yml However, I submit that it does not currently work. I will submit a new ticket as a bug so that this an be closed.
- Lee Morris 2017-06-19 Closing with reference to the above comment.