Currently the .add code on non-iOS systems will copy the files to Ti.Filesystem.applicationDataDirectory. This makes it trickier to add say an image file and then use it in a createImageView() call.
ios
> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: 'pic.jpg' });
undefined
android
> .add pic.jpg
undefined
> var image = Ti.UI.createImageView({ image: Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'pic.jpg') });
undefined
Currently the
.addcode on non-iOS systems will copy the files toTi.Filesystem.applicationDataDirectory. This makes it trickier to add say an image file and then use it in acreateImageView()call.ios
android