[TIMOB-23178] Inconsistent path handling Android / iOS - Live View On / Off
| GitHub Issue | n/a |
|---|---|
| Type | Story |
| Priority | n/a |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | n/a |
| Labels | inconsistency, liveview, path, relative |
| Reporter | carlo |
| Assignee | Unknown |
| Created | 2016-04-08T13:39:54.000+0000 |
| Updated | 2018-02-28T19:55:45.000+0000 |
Description
Paths to *images* and *dbs* are always absolute on iOS, on Android behaviour depends on Liveview, when distributing the app paths are relative to script file.
Attached screenshot and a test app.
app.js
require('folder/script');
folder/script
var win = Ti.UI.createWindow({layout:'vertical'});
win.add(Ti.UI.createLabel({
top:16,
text:'/image.png'
}));
win.add(Ti.UI.createImageView({
image:'/image.png'
}));
win.add(Ti.UI.createLabel({
text:'image.png'
}));
win.add(Ti.UI.createImageView({
image:'image.png'
}));
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| Android.png | 2016-04-08T13:38:05.000+0000 | 48095 |
| Android liveview.png | 2016-04-08T13:39:39.000+0000 | 48835 |
| iOS.png | 2016-04-08T13:38:06.000+0000 | 162938 |
| iOS liveview.png | 2016-04-08T13:39:39.000+0000 | 163322 |
| Pathtest.rar | 2016-04-08T13:38:58.000+0000 | 80851 |
No comments