[TIMOB-8894] MobileWeb: Add support for setting an ImageView image to a Ti.Filesystem file
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-06-14T16:25:21.000+0000 |
| Affected Version/s | Release 2.0.1 |
| Fix Version/s | Release 2.1.0, Sprint 2012-12 MW |
| Components | MobileWeb |
| Labels | qe-port |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2012-04-25T22:08:17.000+0000 |
| Updated | 2012-08-08T16:40:26.000+0000 |
Description
Mobile web errors when you try to set an imageview's image to a path of a filesystem file.
Need to detect if the image url is in appdata:// or tmp://.
var f = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory,'ti.png');
f.write(this.responseData);
imageView.image = f.nativePath;
Attachments
| File | Date | Size |
|---|---|---|
| app.js | 2012-06-14T16:11:36.000+0000 | 609 |
Pull request: https://github.com/appcelerator/titanium_mobile/pull/2400
Tested On: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120807144112 Android 4.0.4 - default ,chrome 18.0 Iphone 4.3.5 - safari mobile Mountain lion(10.8) - chrome 21.0,safari 6,firefox 14.0.1