title: LocalFileSystem is not defined PhoneGap
body: <p>I know that the question has been asked before but I can't find any workaround...</p>
  
  <p>I am trying to get a file thanks to PhoneGap File feature, so I took the example on their documentation website, and get the above error.</p>
  
  <p>This is my code : </p>
  
  <pre><code>document.addEventListener("deviceready", onDeviceReady, false);
  
              function onDeviceReady() {
                  window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
              }
  
              function gotFS(fileSystem) {
                      fileSystem.root.getFile("toto.txt", null, gotFileEntry, fail);
              }
  
              function gotFileEntry(fileEntry) {
                      fileEntry.file(gotFile, fail);
              }
  
              function gotFile(file){
                      readDataUrl(file);
                      readAsText(file);
              }
  
              function readDataUrl(file) {
                      var reader = new FileReader();
                      reader.onloadend = function(evt) {
                              console.log("Read as data URL");
                              console.log(evt.target.result);
                      };
                      reader.readAsDataURL(file);
              }
  
              function readAsText(file) {
                      var reader = new FileReader();
                      reader.onloadend = function(evt) {
                              console.log("Read as text");
                              console.log(evt.target.result);
                      };
                      Ext.Msg.alert('toto',reader.readAsText(file), Ext.emptyFn);
              }
  
              function fail(error) {
                      Ext.Msg.alert('error',error.code, Ext.emptyFn);
              }
  </code></pre>
  
  <p>Here is my config.xml file : </p>
  
  <pre><code>&lt;feature name="http://api.phonegap.com/1.0/device" /&gt;
  &lt;preference name="permissions" value="none" /&gt;
  &lt;preference name="orientation" value="default" /&gt;
  &lt;preference name="target-device" value="universal" /&gt;
  &lt;preference name="fullscreen" value="true" /&gt;
  &lt;preference name="webviewbounce" value="true" /&gt;
  &lt;preference name="prerendered-icon" value="true" /&gt;
  &lt;preference name="stay-in-webview" value="false" /&gt;
  &lt;preference name="ios-statusbarstyle" value="black-opaque" /&gt;
  &lt;preference name="detect-data-types" value="true" /&gt;
  &lt;preference name="exit-on-suspend" value="false" /&gt;
  &lt;preference name="show-splash-screen-spinner" value="true" /&gt;
  &lt;preference name="auto-hide-splash-screen" value="true" /&gt;
  &lt;preference name="disable-cursor" value="false" /&gt;
  &lt;preference name="android-minSdkVersion" value="7" /&gt;
  &lt;preference name="android-installLocation" value="auto" /&gt;
      &lt;feature name="File"&gt;
          &lt;param name="android-package" value="org.apache.cordova.file" /&gt;
      &lt;/feature&gt;
  &lt;icon src="icon.png" /&gt;
  &lt;icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" /&gt;
  &lt;icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" /&gt;
  &lt;icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" /&gt;
  &lt;icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" /&gt;
  &lt;icon gap:platform="blackberry" src="res/icon/blackberry/icon-80.png" /&gt;
  &lt;icon gap:platform="blackberry" gap:state="hover" src="res/icon/blackberry/icon-80.png" /&gt;
  &lt;icon gap:platform="ios" height="57" src="res/icon/ios/icon-57.png" width="57" /&gt;
  &lt;icon gap:platform="ios" height="72" src="res/icon/ios/icon-72.png" width="72" /&gt;
  &lt;icon gap:platform="ios" height="114" src="res/icon/ios/icon-57-2x.png" width="114" /&gt;
  &lt;icon gap:platform="ios" height="144" src="res/icon/ios/icon-72-2x.png" width="144" /&gt;
  &lt;icon gap:platform="webos" src="res/icon/webos/icon-64.png" /&gt;
  &lt;icon gap:platform="winphone" src="res/icon/windows-phone/icon-48.png" /&gt;
  &lt;icon gap:platform="winphone" gap:role="background" src="res/icon/windows-phone/icon-173.png" /&gt;
  &lt;gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" /&gt;
  &lt;gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" /&gt;
  &lt;gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" /&gt;
  &lt;gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" /&gt;
  &lt;gap:splash gap:platform="blackberry" src="res/screen/blackberry/screen-225.png" /&gt;
  &lt;gap:splash gap:platform="ios" height="480" src="res/screen/ios/screen-iphone-portrait.png" width="320" /&gt;
  &lt;gap:splash gap:platform="ios" height="960" src="res/screen/ios/screen-iphone-portrait-2x.png" width="640" /&gt;
  &lt;gap:splash gap:platform="ios" height="1024" src="res/screen/ios/screen-ipad-portrait.png" width="768" /&gt;
  &lt;gap:splash gap:platform="ios" height="768" src="res/screen/ios/screen-ipad-landscape.png" width="1024" /&gt;
  &lt;gap:splash gap:platform="winphone" src="res/screen/windows-phone/screen-portrait.jpg" /&gt;
  &lt;access origin="http://127.0.0.1*" /&gt;
  </code></pre>
  
  <p>I tried installing the cordova file plugin with the phonegap CLI, which actually succeeded... but any change appearing on my app.</p>
  
  <p>Any idea ? </p>
  
  <p>Thanks a lot!!</p>
  
  <p>ps: I'm using Sencha Touch 2.3.1 with Sencha Cmd to build my app but it probably doesn't change anything since other features like batterystatus or physical button binding work fine...</p>