Execute Phonegap Function From Android Java
I'm developing an Android App with Phonegap 2.9.0 and I would like to implement a special function but I don't know how to do it. I want to use an Android Status Notifications and
Solution 1:
From inside your Activity extending CordovaActivity
this.appView.sendJavascript("window.mySpecialFunction()");
Or from inside a PhoneGap Plugin
this.webView.sendJavascript("window.mySpecialFunction()");
Obviously you would replace the string with whatever function you needed and you'd have to build any data needed into the js string as well.
Post a Comment for "Execute Phonegap Function From Android Java"