I use this on one of my screen:
protected void makeMenu(Menu menu, int instance){
if (UserData.sessionId != null){
menu.add(logOut);
menu.add(setting);
}
menu.add(exitApp);
}
The "log out" and "setting" menu only appear after the user logs in (hence, the session ID is not null). How to make the "log out" and "setting" disappear from the menu after the user logs out, while the same screen is still being displayed?
invalidate() ?