{ "id": "62896", "key": "TIMOB-2264", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2017-06-19T21:33:55.000+0000", "created": "2011-04-15T03:15:10.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-19T21:33:55.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Like iPhone has a settings bundle, Android can use a Preferences\r\nXML file to open a standard preference UI.

\r\n

Pull request here: https://github.com/appcelerator/titanium_mobile/pull/17

{html}", "attachment": [], "flagged": false, "summary": "Android: Support native PreferenceActivity", "creator": { "name": "nathanielmccallum", "key": "nathanielmccallum", "displayName": "Nathaniel McCallum", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nathanielmccallum", "key": "nathanielmccallum", "displayName": "Nathaniel McCallum", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "358436", "author": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "body": "Should be closed", "updateAuthor": { "name": "manuellehner", "key": "manuellehner", "displayName": "Manuel Lehner", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-07-28T13:24:01.000+0000", "updated": "2015-07-28T13:24:01.000+0000" }, { "id": "410279", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This should NOT be closed until a complete code example ( including getting and setting keys) exists. \r\nCurrently 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. \r\n\r\nOne 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. \r\nLooking at the implementation of this API, it appears that the keys might be buried somewhere in the Android R object. \r\n\r\nPlease advise.", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T14:04:25.000+0000", "updated": "2017-03-09T14:05:21.000+0000" }, { "id": "411216", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Turns out that there is documentation:\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/apidoc/Titanium/UI/Android/Android.yml\r\n\r\nHowever, I submit that it does not currently work.\r\n\r\nI will submit a new ticket as a bug so that this an be closed. ", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:17:20.000+0000", "updated": "2017-03-10T18:17:20.000+0000" }, { "id": "422316", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing with reference to the above comment.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-19T21:33:55.000+0000", "updated": "2017-06-19T21:33:55.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }