Teena Posted February 4, 2015 Share Posted February 4, 2015 I developed game using html5 and then use phonegap to run it on android.Then i made layouts in android and connect this game with these layouts.Now i just want to pass a variable value (suppose on button(a,android widget) click) from android java to javascript phonegap??How to do this?I searched internet but nothing helps. Quote Link to comment Share on other sites More sharing options...
Teena Posted February 5, 2015 Author Share Posted February 5, 2015 Any other way to do this? Quote Link to comment Share on other sites More sharing options...
Teena Posted February 5, 2015 Author Share Posted February 5, 2015 hey guys i just solved it!Communication between native and hybrid app by using addjavascriptInterface and set javsscriptEnabled. Methods Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.