摘要:
去掉targetSdkVersion或改为targetSdkVersion =13或更小。。不改targetSdkVersion的办法:在onCreate() 里setContentView()之后加入如下代码即可。try { window.addFlags(WindowManager.LayoutParams.class.getField("FLAG_NEEDS_MENU_KEY").getInt(null));}catch (NoSuchFieldException e) { // Ignore since this field won't exist in m 阅读全文