Phonegap Ordner erstellen in Android
    
OOPDeveloper89
    
    
      
    
  - javascript
 
Hallo Leute,
Kann mir einer sagen, was ich falsch mache? Es geht darum mit der Phonegap API ein Ordner zu erstellen.
Betriebssystem ist Android 4.3.
Ausserdem benutze ich cordova 2.9.1
Code:
var FileSystemCustom = {  
  
     download : function() {  
     var that = this;  
  
     window.requestFileSystem(  
         LocalFileSystem.PERSISTENT,  
         0,  
         that.yeahSuccess,  
         that.onFailOhNOOO);  
    },  
  
    yeahSuccess : function(fileSystem) {  
    fileSystem.root.getDirectory(  
        'testdir',  
        {create : true, exclusive : false},  
        FileSystemCustom.onSuccessCreatedYeaa,  
        FileSystemCustom.onFailRequest);  
    },  
  
    onSuccessCreatedYeaa : function(directoryEntry) {  
    alert('YEAH');  
    },  
  
    onFailOhNOOO : function(error) {  
    alert(error.code);  
    }  
};
AndroidManifest.xml:
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Ich kriege immer error code 5... Encoding Error.
Danke im voraus.