I have already been able to create apps with my current set-up so I know it works well, I am just unable to write to a file. I have spent hours on this problem but keep getting the following error message:

E/Web Console(27356): Uncaught ReferenceError: LocalFileSystem is not defined at file:///android_asset/www/debug.js:28

line 28 being

window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);

I am using the exact code from the API website.

Any suggestions on what I could be doing wrong?

Maybe I am not importing the proper Java libraries in my PhoneGap setup?

I have updated my post. If I use the deviceready function, I can't even get that to fire. Is there a known issue with this feature and phonegap for android? I have spent hours on this problem wihout any success. Any help would be much appreciated. Thank you.
–
user1017063Jun 18 '12 at 19:46