Create a TextView as indicated by another answer, instead of EditText . Then redefine the Activity context menu in your Activity class, as shown below:
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { menu.add(0, v.getId(), 0, "Copy");
Then just call registerForContextMenu(yourTextView); in onCreate() .
source share