I have a webapp whose front end is in Javascript and HTML and back end in Asp.net. Can anyone tell me how do I embed native Android to a part of WebApp ?
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.
You can call javascript by calling loadUrl() on the WebView. For example:
webview.loadUrl("javascript: doSomethingInJavascript();");You can setup a Javascript Interface that will let you call native Java methods from javascript. For more about that see this Android doc: http://developer.android.com/guide/webapps/webview.html#BindingJavaScript
Also, if you meant that you want to embed native Android view’s into a webpage. The WebView is a AbsoluteLayout and you can add views to it with addView.