2 Replies Latest reply on Sep 9, 2011 5:32 AM by Francisc

    How to tell when View is about to transition to another view and when the app is going to backgorund

    Francisc Level 3

      Hello,

       

      I have a view that displays an actionContent button and removes it when the view goes away.

      I add it on the creationComplete event handler and remove it on the viewDeactivate event handler.

       

      The problem is that the viewDeactivate is fired when the the Menu button is pressed or a phone call is received for example and thus it removes the button.

      When the application is brought back, the button is no longer there.

       

      Although I can add the code to create the button again on viewActivate this time, I wonder if there is a better way to do this.

       

      Thank you.