Hi Dave, 

I've finally managed to get the DeviceStorage functionality to work within my 
App. Thank you so much for suggesting the troubleshooting methods I could try 
(no pun intended). =) 

Maybe in my case the problem was caused by implementing LocalStorage code 
together with DeviceStorage code; I separated the code piece by piece and was 
able to read from/write to the SD-card eventually. 

--- 

Anyhow, I have 2 other questions I would like to consult you about... 


The 1st is that per this Bugzilla thread - 
https://bugzilla.mozilla.org/show_bug.cgi?id=859696 - is deleting and 
re-creating a file really the only way to save changes to the file right now? 


The 2nd is if I need to read multiple files synchronously; would that be 
possible? 

You see the trouble is, my App requires info from various files and it can't do 
anything else 'in the meantime' while waiting for the info, so the asynchronous 
method doesn't really help in this case as now I would have to hook up lots of 
listeners to notify me when the process is complete. 

Are there perhaps alternative approaches I could consider? 


Greatly appreciate all your help! 

Best regards, 


Hugh
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to