<ここ>を参考にして、ListViewにコンテキストメニュー(ロングクリックで出てくるメニュー)を追加した。 1.ListViewにロングクリックリスナーを設定していると実行時エラーになるのでロングクリックリスナーは削除しておく。 2.コンテキストメニューで何を選択されたかは、MenuItem#getTitle()で取得。 3.ListViewのどの位置で押されたかは、MenuItem#getMenuInfo()をAdapterContextMenuInfoにキャストして、AdapterContextMenuInfo#positionで取得。 4.クリップボードへのコピーはClipboardManagerを使うだけで超簡単。 // コンテキストメニュー表示 @Override public void onCreateContextMenu(ContextMenu menu, View vi