Question

I have an android build of codename one

Can i show the command menu through code in codename one for android build?

Right now , i need to click on the menu option to access the commands. Is there any code snippet through which I can make the commands appear on the screen (invoke the menu) ?

Was it helpful?

Solution

Not at the moment since we don't support showing the native command menu and the command menu might not exist (think ActionBar on Android 3.x and newer).

However, showing the "lightweight" menu might work for some cases. Be warned that this is unsupported officially and this is in no way a recommendation to doing this!

You can call Form.getMenuBar().showMenu(), again this will work great in the simulator but on the actual devices your millage might vary in terms of device look/feel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top