[TIMOB-1267] Android: Allow Setting HomeScreen Wallpaper
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-05-04T10:55:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.7.0, Sprint 2011-18 |
Components | Android |
Labels | android, feature, release-1.7.0, rplist |
Reporter | Don Thorp |
Assignee | Bill Dawson |
Created | 2011-04-15T02:48:07.000+0000 |
Updated | 2011-05-04T10:55:58.000+0000 |
Description
Feature request.
The ability to do this is one of the main reasons for my mobile development. Hope this can be escalated to some extent. Thanks.
Moving out of future into TBS.
(from [f1f5cedd3d383687c571367bbdbfd18ddacbab03]) New Titanium.Media method to setSystemWallpaper, including apidoc. Also, change erroneous name "peakBounds" to "peekBounds". [#1267] https://github.com/appcelerator/titanium_mobile/commit/f1f5cedd3d383687c571367bbdbfd18ddacbab03"> https://github.com/appcelerator/titanium_mobile/commit/f1f5cedd3d38...
(from [aaaa80fc7cb96429076e4054139b4c9077f6ceb4]) Move setSystemWallpaper from Ti.Media to Ti.Media.Android [#1267] https://github.com/appcelerator/titanium_mobile/commit/aaaa80fc7cb96429076e4054139b4c9077f6ceb4"> https://github.com/appcelerator/titanium_mobile/commit/aaaa80fc7cb9...
QE Testing:
You want to run this on a phone, so you can try the camera and if you have some photos in your Gallery on your phone, then that's good too.
A good sample app.js:
Run the app, and you can try three different ways of setting the homescreen wallpaper -- one by using the camera directly, one by selecting an existing photo from the Gallery, and one by setting it from the filesystem (just using the ugly KS_nav_ui.png file that is by default in your project's Resources folder.
NOTE: When you take a photo or select from the gallery, don't be surprised if it takes a minute before the homescreen wallpaper actually gets updated. The system doesn't necessarily do it immediately.
The permission for set wallpaper isn't being added. I used your test app in a new project.
Added wallpaper permission code to builder.py
Tested on Nexus One 2.3.3