Page 1 of 1

nav bar menu android

Posted: Tue Jan 27, 2015 12:13 pm
by Free Android Gaming

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


nav bar menu android

Posted: Tue Jan 27, 2015 12:47 pm
by Evgene Karachevtsev

nav bar menu android

Posted: Tue Jan 27, 2015 1:20 pm
by Free Android Gaming

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


nav bar menu android

Posted: Wed Jan 28, 2015 8:06 am
by Evgene Karachevtsev

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


nav bar menu android

Posted: Wed Jan 28, 2015 8:34 am
by M&M

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...


nav bar menu android

Posted: Wed Jan 28, 2015 12:29 pm
by Free Android Gaming

i'll look into it

thank you very much