Can I have a button that calls the android native share dialogue on android webview? For example uing Javascript in the webview and call my android function? If so, how can I make it? Thanks!
Asked
Active
Viewed 1,277 times
1 Answers
1
You can expose your own methods to Javascript in the WebView by using the WebView's addJavascriptInterface method.
From that method, you can 'share' your data, whatever that is. You can't "call" the share dialog directly, though. You need to use an Intent - in this case, probably an ACTION_SEND intent.

GreyBeardedGeek
- 29,460
- 2
- 47
- 67