 <p>you can use the passed View object in <strong>onCreateContextMenu</strong> to determine the owner of the menu and populate a menu accordingly.</p> <p>Your code should look something like this :</p> <pre><code>public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); switch (v.getId()) { case R.id.imageIconId: menu.setHeaderTitle(getString(R.string.option1)); menu.add(0, v.getId(), 0, getString(R.string.option2)); menu.add(0, v.getId(), 0, getString(R.string.options3)); break; case R.id.textViewid: // do whatever you want with the menu object. break; } } </code></pre>