public boolean onLongClick(View v) {
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"Text here - " );
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, viewContentWebView.getUrl());
startActivity(Intent.createChooser(shareIntent, "Link Goes to..."));
return true;
}
こんにちは、そのコードで、webview のリンクを longpress と共有しようとしています。そのため、ユーザーは webview をしばらく押すと、「共有」メニューが表示されます。
しかし、どうすれば結果を得ることができますか?