Correct Log-out

Laura83Laura83 USMember ✭✭

Hi there.
I'm writing a method for a log-out in the application. I simply delete credentials and pop the actual View from the stack for return to the previous page that is the LoginView.
Now, when I log-in again (without stop the application, it still runs), I obtain a Java.Lang.IllegalStateException. Probably it is because I have to re-initialize every object? Or what?

Thanks ^^

Posts

  • AdrianKnightAdrianKnight USMember ✭✭✭✭

    You should probably post some code. When you pop a page from the stack, then it should be garbage collected. When you log in, you need to create a new instance of the same page. Again, code sample will help here.

  • Laura83Laura83 USMember ✭✭

    Thank you, but never mind. I simply forgot to release a service in the log-out.

Sign In or Register to comment.