title: How to get the View from which context menu option was selected?
body: <p>In my app I'm dynamically creating some views and all of them have registered the same context menu.</p>
  
  <pre><code>for(int j = 0; j &lt; CELLS_IN_ROW; j++) {
      MyView v = new MyView();
      ((Activity) context).registerForContextMenu(v);
  }
  /* ----------------------------------------------- */
  
  
      @Override
      public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {
      super.onCreateContextMenu(menu, v, menuInfo);
  
      MenuInflater menuInflater = getMenuInflater();
      menuInflater.inflate(R.menu.cell_context_menu, menu);
  }
  
      @Override
      public boolean onContextItemSelected(MenuItem item) {
      switch (item.getItemId()) {
          case R.id.myOption:
              MyView viewClicked = ?????
  
              doSomethingDependingOnView(viewClicked);
              return true;
  
          default:
              return super.onContextItemSelected(item);
      }
  }
  </code></pre>
  
  <p>But when the menu option is clicked I want to make different actions depending on which view was clicked to open the context menu. How can I do this?</p>