Is it possible to invoke a method or a function of a running android application using javascript?? OR Is there a possible way to communicate between Javascript and native android application??
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, there’s such a method. Just use the
WebView.addJavascriptInterface()method. It creates a javascript variable which is bound to a java object. You’ll be able to call methods of this object from your javascript code.