Refresh window on Android ?
Hi,
I have one problem with my app on Android and I don't understand why it doesn't work…
I have one window with a button Login or Logout (if the user is logged or not). When the user click on the login button, it opens a new window where he could log in… When users is logged the login window closes, and the main window appears again…But it impossible to refresh the button (if the user was not logged, button should be logout if login is success…)
With iPhone, I use the focus window event, but this event doesn't work with Android…I've tried with a SetInterval in order to refresh the button, but the interval stops when I go on the login window, and doesn't restart when I go back on the main window…
Have you any ideas to refresh my button ?
Thanks for your help.
2 Answers
-
Can't you just "manually" change the text on the button? I mean, in either the event listener for the button or the function/page it calls change the text of the button with
yourButton.text = 'Login'
oryourButton.text='Logout'
.Tim
-
Thanks Tim for your answer, but unfortunately my buttons are pics…I want to manage them wjth functions hide() and/or show(), but i don't understand how to do this (how to catch the "event") on Android…
Guillaume.