1. #1
    Sencha User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
    NobleHan is on a distinguished road

      0  

    Default Unanswered: Ext.device.filesystem.DirectoryEntry.getFile() Error: Read-only file system

    Unanswered: Ext.device.filesystem.DirectoryEntry.getFile() Error: Read-only file system


    Meet below exceptions when getFile() by Ext.device.filesystem.DirectoryEntry.getFile() :

    12-24 09:06:37.489: W/System.err(325): java.io.IOException: Read-only file system
    12-24 09:06:37.489: W/System.err(325): at java.io.File.createNewFileImpl(Native Method)
    12-24 09:06:37.489: W/System.err(325): at java.io.File.createNewFile(File.java:1257)
    12-24 09:06:37.489: W/System.err(325): at org.apache.cordova.file.FileUtils.getFile(FileUtils.java:832)
    12-24 09:06:37.489: W/System.err(325): at org.apache.cordova.file.FileUtils.access$600(FileUtils.java:53)
    12-24 09:06:37.489: W/System.err(325): at org.apache.cordova.file.FileUtils$17.run(FileUtils.java:249)
    12-24 09:06:37.489: W/System.err(325): at org.apache.cordova.file.FileUtils$23.run(FileUtils.java:325)
    12-24 09:06:37.489: W/System.err(325): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
    12-24 09:06:37.489: W/System.err(325): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
    12-24 09:06:37.489: W/System.err(325): at java.lang.Thread.run(Thread.java:1019)

    I have required:
    Code:
    'Ext.device.FileSystem',
    'Ext.device.filesystem.*'
    The Function:

    Code:
    Ext.device.FileSystem.requestFileSystem({
    	type: window.PERSISTENT,
    	size: 1024 * 1024,
    	success: function(filesystem) {
    		filesystem.getRoot().getDirectory({
    			path : "WMS", 
    			options : {create: true, exclusive: false},
    			success : function (wmsEntry) {
    				wmsEntry.getFile({
    					path : "items.txt", 
    					options : {create: true, exclusive: false},
    					success : function (fileEntry) {
    						console.log("FileEntry Success: " +fileEntry);},
    					failure : function (error) {
    						console.log("FileEntry Failure: " +error);}
    				});
    			},
    			failure : function (error) {
    				console.log("DirEntry Failure: " +error);
    			}
    		});
    	},
    	failure: function(error) {
    		 console.log("FileSystem Failure: " + error);
    	}
    });
    The AndroidManifest.xml:

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    Any help?

  2. #2
    Sencha User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
    NobleHan is on a distinguished road

      0  

    Default


    Up

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar