September 13th, 2011, 06:14 AM
Thread Author (OP)
Join Date: Sep 2011
Carrier: Not Provided
Thanked 0 Times in 0 Posts
Replacing CSS-file from web-site with local, modified copy
Right. My company runs an intranet with lots and lots of useful information that I need when visiting customers. The login page does not allow you to save credentials so what I did was create an app, with web-view, putting a modified HTML-file locally on the phone that in turn saves credentials and forwards these to the server making the login procedure so much smoother. All this is working fine (pretty much), but now it really is bugging me that the mobile optimization is pretty much nonexistant. For my local login page I have modified the CSS-file to scale well and this should also work for the rest of the page.
My question is: Is it possible to somehow replace the websites CSS-file, with my local CSS-file? Maybe somehow finding the line
<link rel="stylesheet" href="/design/layout/style.css" type="text/css" media="screen, projection, tv" />
And make it point to my local: "file:///android_asset/style.css"
Must state that I'm quite the novice but very stubborn...