Android is disabled, showing an overflow icon on devices that have a physical menu button, for some of you that still want this, here is the solution:
add this function to your activity:
private void forceShowActionBarOverflowMenu() { try { ViewConfiguration config = ViewConfiguration.get(this); Field menuKeyField = ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey"); if (menuKeyField != null) { menuKeyField.setAccessible(true); menuKeyField.setBoolean(config, false); } } catch (Exception e) { e.printStackTrace(); } }
and finally you add "forceShowActionBarOverflowMenu ();" right after setContentView () in onCreate () in your activity.
source share