|
I do some android coding (have been delving into it slowly) and from my XP an html/CSS solution would not be an app on the device- it would simply be a site viewed and would be hosted somewhere- to the best of my knowledge the android cannot host and serve websites... it can process http protocols, but not actual HTML (as it is being served in an HTML environment)... I guess what I am saying is (I didn't look at the code posted until now) that the code posted will never work on an android as an 'app' it will work as being served to the android, but then you are coding to a server and saving/writing to the file-system breaks down to the OS you are running on.
If I am understanding what it is you want to do correctly you do not want to approach this with any HTML/CSS/Javascript.... as far as you are concerned Javascript is off limits- don't confuse yourself with android : activity and Javascript scripting.... I would for the moment code it to hide itself- and then bring itself to the forefront... my approach would be that on initialization it looks for an active running process, and if it exists wake it up- and then on close hide itself... by the time you figure that out you will already know how to write to the android file structure and answer your own Q
|