View Single Post
Old 04-30-2012, 07:04 PM   PM User | #10
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
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
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote