Hi,
In my project I'am opening a (login-) window and after succcesfull login I'am opening a tabgroup. The tabgroup shows windows with measured values.
Now I'am looking for a possibility to open dailogbox ("Do you want logout?").
My idea: using of (hardware-) menu button.
in manual I can only read someting about android:back, android:home and android:search. Where is android:menu?
To which object I have to add EventListener? (T.App, tabGroup … ?)
Better ideas to solve my problem?
The code above doesnt work:
Ti.App.addEventListener('android:menu', function(e) { var dialog = Ti.UI.createAlertDialog({ message : 'You want logout?', ok : 'OK', title : 'Logout' }).show(); });
Rainer
1 Answer
Rainer, I would hope you had checked the APIs located at docs.appcelerator.com particularly uder the Ti.Android.Menu section.
Using the example there, your 'window' is the tabgroup. I'm not going to write code for a Titan.
Your Answer
Think you can help? Login to answer this question!