Back to project page droid-fake-road.
The source code is released under:
Apache License
If you think the Android project droid-fake-road listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package mobi.droid.fakeroad; /* w w w. j a v a 2 s .c o m*/ import android.app.Application; import android.view.ViewConfiguration; import java.lang.reflect.Field; /** * Created by max on 22.01.14. */ public class App extends Application{ @Override public void onCreate(){ super.onCreate(); getOverflowMenu(); } private void getOverflowMenu() { 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(); } } }