I've got an Android Phonegap
app that takes a website and injects a few new libraries and stylesheets (zeptojs angularjs etc.)
In my specific case I cannot simply re-write the code to JavaScript
on the page (as I'm not the one in charge of the page's scripts), instead I'd like to use the Java
function sendJavascript()
, and run it from a Java timer
object.
But no matter how I call sendJavascript
it never seems to do anything.
eg:
myActivity.this.sendJavascript("javascript: alert(1)");
But alert(1)
never actually fires