title: Phonegap Android LocalFileSystem is not defined
body: <p>I have a problem for accessing Android File System for storage purpose in my phonegap application. I've searched and found lots of not-my-situation solutions!</p>
  
  <p>I know about the necessity of deviceready to be fired and checked and it got fired. So the phonegap.js is loaded perfectly!</p>
  
  <p>I think I requested the file permissions and have features in my manifest and config file. here they are:</p>
  
  <p>config.xml:</p>
  
  <pre><code>    &lt;feature name="http://api.phonegap.com/1.0/device" /&gt;
      &lt;feature name="http://api.phonegap.com/1.0/battery"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/camera"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/contacts"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/file"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/geolocation"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/media"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/network"/&gt;
      &lt;feature name="http://api.phonegap.com/1.0/notification"/&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;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;access origin="*" /&gt;
      &lt;content src="index.html" /&gt;
  &lt;/widget&gt;
  </code></pre>
  
  <p>AndroidManifest.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  &lt;manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="1.0.0" android:windowSoftInputMode="adjustPan" package="com.pakhshyaran.kara" xmlns:android="http://schemas.android.com/apk/res/android"&gt;
      &lt;supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.BROADCAST_STICKY" /&gt;
      &lt;uses-permission android:name="android.permission." /&gt;
      &lt;application android:debuggable="true" android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name"&gt;
          &lt;activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/app_name" android:name="Kara" android:theme="@android:style/Theme.Black.NoTitleBar"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
      &lt;uses-sdk android:minSdkVersion="10" android:targetSdkVersion="18" /&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>and here is the error throwing part of my code:</p>
  
  <pre><code>$(document).ready(function () {
      document.addEventListener("deviceready", onDeviceReady, false);
  });
  function onDeviceReady() {
      window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSystem) { //throws the 'Uncaught ReferenceError: LocalFileSystem is not defined' error
          fileSystem = fileSystem;
      }, function (evt) {
          alert(evt.target.error.code);
      });
  }
  </code></pre>
  
  <p>But I get the error for a reason I don't have any idea about! Please give me your thought. I appreciate it very much.</p>
  
  <p>PS: I'm using phonegap 3.0!</p>