Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2264] Android: Support native PreferenceActivity

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDone
Resolution Date2017-06-19T21:33:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterNathaniel McCallum
AssigneeIngo Muschenetz
Created2011-04-15T03:15:10.000+0000
Updated2017-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

Comments

  1. Manuel Lehner 2015-07-28

    Should be closed
  2. 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
    Ti.UI.Android.openPreferences()
    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.
  3. 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.
  4. Lee Morris 2017-06-19

    Closing with reference to the above comment.

JSON Source