The Forgotten Planet Game Music

The Forgotten Planet - Menu Music - By Josef Falkensk├Âld ( )

Tuesday, 19 April 2011

SDL Android Port Configure Menu removal when app starts.

Hello again!

While working on the game for Android I realized that the config menu that pops up when you boot the application is annoying since the user have to scroll down on the menu and press the "ok" button in order to get in-game.

I went in to the java code and disabled it.

Here's how you can do it too:

How to disable the startup config  menu:

1. Open up

Find these two lines and comment them just like I've done here



Save & close file.

2. Open up

Insert these two lines above the builder.setSingleChoiceItems section.


Now comment the whole builder section:

/*builder.setSingleChoiceItems(items.toArray(new CharSequence[0]), MainMenuLastSelected, new DialogInterface.OnClickListener()

    if( item == selected )

Find the ";" line just under the builderSingeChoiceItems section and comment it:


Save and close file.

3. (Optional) Open up and hardcode the values you want for the device like:

public static boolean AppUsesMouse = true;  //false;


Also remember that you can set these values in your AndroidAppSettings.cfg file.

I hardcoded the values too to be on the safe side, in case I forgot to add a value in the .cfg file.

Now your ready to build and run your application without the config menu.

Until next post!


No comments:

Post a Comment