@Override
  public void onCreateContextMenu(ContextMenu menu, View v,
      ContextMenuInfo menuInfo) {
    super.onCreateContextMenu(menu, v, menuInfo);
    if (v.equals(ocrResultView)) {
      menu.add(Menu.NONE, OPTIONS_COPY_RECOGNIZED_TEXT_ID, Menu.NONE, "Copy recognized text");
      menu.add(Menu.NONE, OPTIONS_SHARE_RECOGNIZED_TEXT_ID, Menu.NONE, "Share recognized text");
    } else if (v.equals(translationView)){
      menu.add(Menu.NONE, OPTIONS_COPY_TRANSLATED_TEXT_ID, Menu.NONE, "Copy translated text");
      menu.add(Menu.NONE, OPTIONS_SHARE_TRANSLATED_TEXT_ID, Menu.NONE, "Share translated text");
    }
  }
Given either a Spannable String or a regular String and a token, apply
the given CharacterStyle to the span between the tokens.

NOTE: This method was adapted from:
 http://www.androidengineer.com/2010/08/easy-method-for-formatting-android.html

<p>
For example, {@code setSpanBetweenTokens("Hello ##world##!", "##", new
ForegroundColorSpan(0xFFFF0000));} will return a CharSequence {@code
"Hello world!"} with {@code world} in red.
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/CaptureActivity.java