I have an Android WebView app and i have added share action in it, which shares URL of the current page of the webview. but i want it to send text content of the page instead of URL. please help me with share intent. following is my code for share intent.
case R.id.menu_item_share: {
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, myWebView.getUrl());
startActivity(Intent.createChooser(shareIntent, "Share This Website!"));
shareIntent.setPackage("com.whatsapp");
break; //or, return true;