I want to make the communication between native app and web app in android.How to do it can anyone help me please.
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.
Android services and broadcast intents allow two apps to communicate. For the web app, you’ll need to bring some of the app native. I assume you’re already using a WebView; you’ll want to read the WebView documentation concerning how to tie JavaScript to native functions, and how native code can call into JavaScript that is in the page. (That JavaScript can either be a part of the page as provided by the server, or it can be injected into the page by your app.)