[TIMOB-2264] Android: Support native PreferenceActivity
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Done |
Resolution Date | 2017-06-19T21:33:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Nathaniel McCallum |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:15:10.000+0000 |
Updated | 2017-06-19T21:33:55.000+0000 |
Description
Like iPhone has a settings bundle, Android can use a Preferences XML file to open a standard preference UI.
Pull request here: https://github.com/appcelerator/titanium_mobile/pull/17">https://github.com/appcelerator/titanium_mobile/pull/17
Should be closed
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.
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.
Closing with reference to the above comment.