Free Android Gaming
Posts: 0
Joined: Tue Jan 27, 2015 12:13 pm

nav bar menu android

im trying to add an exit option to the nav bar menu for android
Image
could anyone help please? thanks in advance

Free Android Gaming
Posts: 0
Joined: Tue Jan 27, 2015 12:13 pm

nav bar menu android

hi there,
by nav bar i mean the native back, home, toggle android navigation.
i get this menu button on the right hand side (highlighted on the pic above) when running my app, that doesn't do anything. i'd like to add an exit option under this menu if possible.
thanks

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

nav bar menu android

Free Android Gaming,

Sorry, I'm not sure I understand you correctly. You can create a navbar and add any button you like there. For the exit button please try this code
pregetActivity().finish();
System.exit(0); /pre

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

nav bar menu android

Free Android Gaming,

I guess you are referring to this kinda menu options

http://developer.android.com/guide/to...

From what I know that may not be possible to achieve in Appery. You may have to export to Eclipse and achieve this from there

Alternatively you can try your luck with third party plugins (some of them might be troublesome to get working though)

http://plugreg.com/plugin/cranberryga...

https://github.com/mwbrooks/cordova-p...

Preferences Menu?
http://simonmacdonald.blogspot.sg/201...

Free Android Gaming
Posts: 0
Joined: Tue Jan 27, 2015 12:13 pm

nav bar menu android

i'll look into it

thank you very much

Return to “Issues”