title: Contextual Action Mode custom behavior
body: <p>In android developer's <a href="http://developer.android.com/guide/topics/ui/menus.html#CAB" rel="nofollow">menu guide</a> it is mentioned that:</p>
  
  <blockquote>
    <p>The action mode is disabled and the contextual action bar disappears when the user deselects all items, presses the BACK button, or selects the Done action on the left side of the bar.</p>
  </blockquote>
  
  <p>Technically, it means that <code>mActionMode.finish()</code>, the <code>BACK</code> button press, or the <code>Done</code> action selection call <code>ActionMode.Callback onDestroyActionMode()</code> method.</p>
  
  <p>My question is how to perform a custom action (for example <code>Toast("Action mode exit by Done select")</code>) when the user selects <code>Done</code>, and another action (for ex. <code>Toast("Action mode exit by BACK")</code>) when the user press <code>BACK</code>?</p>