title: Titanium Android showCamera error unable to create file for storage
body: <p>I am trying  to use the device camera in my application , but there is an error shows up and the camera is not shown.
  The error is </p>
  
  <p><em>unable to create file for local storage</em></p>
  
  <p>My Controller code is</p>
  
  <pre><code>   function choosePhotoDialogClicked(e) {
          if (Ti.Media.hasCameraPermissions) {
              openCamera();
         }else {
              alert("No camera permission. Asking for Permission");
              Ti.Media.requestCameraPermissions(function(e) {
                  alert('request result'+JSON.stringify(e));
                  if (e.success === true) {
                      openCamera();
                  } else {
                      alert("Access denied, error: " + e.error);
                  }
              });
          }
      }
      function openCamera(){
          Ti.Media.showCamera({
            allowEditing: true,
            saveToPhotoGallery: true,
            mediaTypes: [Titanium.Media.MEDIA_TYPE_PHOTO],
            success: function(event) {
  
              writeFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationCacheDirectory, 'ana.png');
              writeFile.write(event.media);
              $.addNewPhoto.setTitle('اضافة صورة اخرى');
  
            },
            error: function(error) {
              alert('showcamera error -&gt;'+JSON.stringify(error));
              //alert('خطأ في اعدادات الكاميرا');
            }
          });
      }
  </code></pre>
  
  <p>and the tiapp.xml manifist code</p>
  
  <pre><code>    &lt;android xmlns:android="http://schemas.android.com/apk/res/android"&gt;
          &lt;manifest&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.MOUNT_UNMOUNT_FILESYSTEMS" /&gt;
              &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
              &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/&gt;
              &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;
              &lt;uses-feature android:name="android.hardware.camera" /&gt;
              &lt;uses-feature android:name="android.hardware.camera.autofocus" /&gt;
  
              &lt;application&gt;
                  &lt;activity   
                  android:name="ti.modules.titanium.media.TiCameraActivity"  
                  android:configChanges="keyboardHidden|orientation"  
                  android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" /&gt;
              &lt;/application&gt;
              &lt;application android:theme="@style/Light"/&gt;
              &lt;uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23"/&gt;
          &lt;/manifest&gt;
      &lt;/android&gt;
  </code></pre>
  
  <p>Any help will be appreciated  </p>