I have an HTML file being utilized by webview in an activity. The HTML file makes up a large table that is scrollable in the webview. I want to add some javascript to the HTML file to float an image over the table. I also want this image to change positions on a time interval (every five seconds). I was hoping to accomplish such by using a random number generator to change the coordinates of the floated image every five seconds.
Firstly, is this implementation possible? I am new to javascript, but this doesn't seem like too far-fetched of an idea.
Secondly, I want the floated image to be clickable. And, upon clicking I want information to be placed in a string. My other question is, is there a way to call the string built by the HTML file into another activity in android?
I know my intentions may be unclear to some. If clarification is necessary, please ask. Thanks for any and all help :D