I want to use a standard Android options Menu with jMonkey. I am using the following code and i am just wondering why onCreateOptionsMenu never gets called if i press the options key.
[java]
public class Shield3D extends AndroidHarness {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.v("asdf", "####ONCREATE");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.activity_shield3d, menu);
Log.v("asdf", "####OPTIONS");
return true;
}
public Shield3D() {
// Set the application class to run
appClass = "com.myclass.Shield§d";
// highest (best) egl config available on this device
eglConfigType = ConfigType.BEST;
// Exit Dialog title & message
exitDialogTitle = "Exit Shield3D App?";
[Rest of the Code snipped]
[…]
[/java]