I have created an application for the Android that displays HTML pages through WebView. Each page uses one communal CSS page.
What I am attempting to do is create a settings page that will allow me to alter the CSS which would consequently result in a change in all the HTML pages. I have looked everywhere for a way to do this and have of yet been unsuccessful in my search.
If you want to bypass writing an Android preferences activity, and keep all the smarts in the web app, simply encapsulating this in a webview, your best option is to use a server-side language for I/O access, as others have suggested above. Since you’re using JavaScript already, why not keep everything JS? node.js seems like as good a solution as any to me.
You’ll want to check out the node.js API doco here. What you want is:
fd refers to the filename and location, and you’ll need to specify buffer, offset, length, and position to tell node where in the file you want to write.