Editing css on settings page for web app on Android

I created an Android application that displays HTML pages through WebView. Each page uses one common CSS page.

What I'm trying to do is create a settings page that will allow me to change the CSS, which therefore will lead to the change of all HTML pages. I have always looked for a way to do this and still have not been successful in my search.

+5
source share
1 answer

If you want to bypass the Android preferences activity record and save all the emoticons in the web application by simply encapsulating it in the web view, your best option is to use the server language to access I / O, as others suggested above. Since you are already using JavaScript, why not save all the JS? node.js seems like a good solution to me.

You want to check here the node.js doco API here . Do you want to:

fs.write(fd, buffer, offset, length, position, [callback])

fd refers to the file name and location, and you need to specify a buffer, offset, length and position to tell node where in the file you want to write.

0
source

All Articles