Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1003

Android: Empty value when reading a resource directory js file

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:
    • Environment:

      Android 3.2.2, 4.0 and 4.4
      Mac OS X 10.9.2, Windows 7 SP1 and Debian OS
      Titanium 3.2.2GA

      Description

      You have a .js file at Resources/lib named library.js with content:

      var a = "hello world";

      ----------

      if you try read the file like a text plain file

      var value = Ti.Filesystem.getFile(Ti.Filesystem.getResourcesDirectory(), "lib/library.js").read().toString();

      value should be "var a = \"hello world\";", but value is empty -> "".

      ----------

      if you change library.js to library.lib or other extension is fine.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ragrawal Ritu Agrawal
                Reporter:
                afcarrera Alejandro F. Carrera
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code