title: Dynamic Context Menu options
body: <p>Is it possible to create a dynamic context menu in android?</p>
  
  <p>What I mean is, for example, if I have a list of items, that can be in two states: "read" and "unread". I want to be able to bring up a context menu with an option of "Mark as Read" for the unread items, and "Mark as Unread" for the read items.</p>
  
  <p>So clicking on:</p>
  
  <pre><code>&gt; read
  &gt; unread &lt;-- click
  &gt; read 
  </code></pre>
  
  <p>will show context menu "Mark as Read" resulting in:</p>
  
  <pre><code>&gt; read
  &gt; read
  &gt; read   &lt;-- click
  </code></pre>
  
  <p>will show the menu "Mark as Unread".</p>
  
  <p>Is there some function that allows me to customize the creation of the context menu, just before it is displayed?</p>
  
  <p>Any help is welcome!</p>