Every activity within my android app is generated using HTML. When one of the images is touched, I would like to bring up an android dialog like this. How can I achieve this? I’m assuming javascript, but I have no idea how.
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 use a
WebViewwithaddJavascriptInterface(). This adds a bridge from javascript to native Android code, allowing you to trigger a dialog from HTML.See example here:
http://developer.android.com/guide/webapps/webview.html