Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed the Mobile Web notes section per TIDOC-3000.


Transitioning from case-insensitive filesystems, such as FAT32, NTFS and HFS+, to case-sensitive filesystems on Android and Mobile Web devices means that a file name referenced in the source code may not match the case of the file on the device's filesystem. For example, an application may work on the Android emulator but may not work on an Android device, throwing a runtime error or not displaying an image. It is recommended to lowercase all file names. If you change the name of a file, clean your project's build directory before building the application.

Mobile Web Notes

Mobile Web supports file storage, though is subject to limitations placed by the device operating systems. In many cases, Mobile Web apps are limited to 5 MB of total storage for local files imposed by the browser framework.

The Resources directory serves as the "web root" folder for a Mobile Web application. Ti.Filesystem can see all files in the Resources directory except the index.html and titanium/filesystem.registry files. If Ti.Filesystem.getFile() is called with a relative path (i.e. "myimage.jpg"), the Resource directory is automatically prepended to the path.

Files with a MIME type of application/*, image/*, audio/*, or video/* are automatically handled as "binary" where the data internally is stored Base64-encoded.

Hands-on Practice


In this activity, you will update the local data sample app you worked on in the 5.2 and 5.3 tutorials to save the weather icons to the local filesystem.