{ "id": "61899", "key": "TIMOB-1267", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11253", "name": "Sprint 2011-18", "archived": true, "released": true, "releaseDate": "2011-05-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-04T10:55:58.000+0000", "created": "2011-04-15T02:48:07.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "feature", "release-1.7.0", "rplist" ], "versions": [], "issuelinks": [ { "id": "10233", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "64769", "key": "TIMOB-3700", "fields": { "summary": "Confirm TIMOB-1267", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "5", "description": "The sub-task of the issue", "name": "Sub-task", "subtask": true } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-05-04T10:55:58.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}

Feature request.

{html}", "attachment": [], "flagged": false, "summary": "Android: Allow Setting HomeScreen Wallpaper", "creator": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125215", "author": { "name": "ericbeach", "key": "ericbeach", "displayName": "Eric Beach", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

The ability to do this is one of the main reasons for my mobile\ndevelopment. Hope this can be escalated to some extent. Thanks.

{html}", "updateAuthor": { "name": "ericbeach", "key": "ericbeach", "displayName": "Eric Beach", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:08.000+0000", "updated": "2011-04-15T02:48:08.000+0000" }, { "id": "125216", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Moving out of future into TBS.

{html}", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:48:08.000+0000", "updated": "2011-04-15T02:48:08.000+0000" }, { "id": "125217", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [f1f5cedd3d383687c571367bbdbfd18ddacbab03])\nNew Titanium.Media method to setSystemWallpaper, including apidoc.\nAlso, change erroneous name \"peakBounds\" to \"peekBounds\". [#1267]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/f1f5cedd3d38...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:48:09.000+0000", "updated": "2011-04-15T02:48:09.000+0000" }, { "id": "125218", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [aaaa80fc7cb96429076e4054139b4c9077f6ceb4])\nMove setSystemWallpaper from Ti.Media to Ti.Media.Android [#1267]\n\nhttps://github.com/appcelerator/titanium_mobile/commit/aaaa80fc7cb9...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:48:09.000+0000", "updated": "2011-04-15T02:48:09.000+0000" }, { "id": "125219", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

QE Testing:

\n

You want to run this on a phone, so you can try the camera and\nif you have some photos in your Gallery on your phone, then that's\ngood too.

\n

A good sample app.js:

\n
\nTitanium.UI.setBackgroundColor('#000');\nvar win = Titanium.UI.createWindow({  \n    title:'Test',\n    backgroundColor:'#000',\n    fullscreen:false,\n    exitOnClose: true\n});\nvar cb =function(data){\n    var blob = data.media;\n    Ti.API.info(blob);\n    Ti.Media.Android.setSystemWallpaper(blob, true);\n};\nvar err = function(e) {\n    Ti.API.error(e);\n};\nvar cancel =function() {\n    Ti.API.warn('Cancelled');\n};\n\nvar btn = Ti.UI.createButton({\n    title: 'Camera',\n    top: 0, height: \"40dp\", left: 0, right: 0\n});\nwin.add(btn);\nbtn.addEventListener('click', function(){\n    Ti.Media.showCamera({\n        success:cb,\n        error: err,\n        cancel: cancel\n    });\n});\n\nvar gallery = Ti.UI.createButton({\n    title: 'Gallery',\n    top: \"45dp\", height: \"40dp\", left: 0, right: 0\n});\ngallery.addEventListener('click', function(){\n    Ti.Media.openPhotoGallery({\n        success:cb,\n        error:err,\n        cancel:cancel\n    });\n});\nwin.add(gallery);\n\nvar file = Ti.UI.createButton({\n    title: 'File',\n    top: \"90dp\", height: \"40dp\", left: 0, right: 0\n});\nfile.addEventListener('click', function(){\n    var f = Ti.Filesystem.getFile('KS_nav_ui.png');\n    var blob = f.read();\n    Ti.Media.Android.setSystemWallpaper(blob, true);\n});\nwin.add(file);\n\nwin.open();\n
\n

Run the app, and you can try three different ways of setting the\nhomescreen wallpaper -- one by using the camera directly, one by\nselecting an existing photo from the Gallery, and one by setting it\nfrom the filesystem (just using the ugly KS_nav_ui.png file that is\nby default in your project's Resources folder.

\n

NOTE: When you take a photo or select from the\ngallery, don't be surprised if it takes a minute before the\nhomescreen wallpaper actually gets updated. The system doesn't\nnecessarily do it immediately.

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T02:48:09.000+0000", "updated": "2011-04-15T02:48:09.000+0000" }, { "id": "133136", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The permission for set wallpaper isn't being added. I used your test app in a new project.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-03T18:13:09.000+0000", "updated": "2011-05-03T18:13:09.000+0000" }, { "id": "133150", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Added wallpaper permission code to builder.py", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-05-04T03:49:29.000+0000", "updated": "2011-05-04T03:49:29.000+0000" }, { "id": "133160", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on Nexus One 2.3.3", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-05-04T10:55:58.000+0000", "updated": "2011-05-04T10:55:58.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }