I'm developing a TV widget which contains a SidebarView and a FullscreenView. When I leave the widget for a long time (about 10-15 minutes), I saw in the log of the simulator terminal that my sidebar view and my fullscreen view were unloaded. Here is the log:
WM 00:05:12:239: [T:1742] [KONtx/Rallycast Fantasy] {SidebarViewTest-2} :: _onUnloadView
WM 00:05:12:239: [T:1742] [KONtx/Rallycast Fantasy] {SidebarViewTest-2} :: destroyView
WM 00:06:12:258: [T:1742] [KONtx/Rallycast Fantasy] {HostEventManager} :: Got HostEvent: onUnloadView
WM 00:06:12:259: [T:1742] [KONtx/Rallycast Fantasy] {SnippetViewTest-1} :: _onUnloadView
WM 00:06:12:259: [T:1742] [KONtx/Rallycast Fantasy] {SnippetViewTest-1} :: destroyView
WM 00:15:12:671: [T:1742] [KONtx/Rallycast Fantasy] {HostEventManager} :: Got HostEvent: onHideView
WM 00:16:12:367: [T:1742] [KONtx/Rallycast Fantasy] {HostEventManager} :: Got HostEvent: onUnloadView
WM 00:16:12:367: [T:1742] [KONtx/Rallycast Fantasy] {MainViewTest-6} :: _onUnloadView
WM 00:16:12:367: [T:1742] [KONtx/Rallycast Fantasy] {MainViewTest-6} :: destroyView
So my question is: why are my views unloaded? How can I prevent them from being unloaded/destroyed?
Any input are welcome!
Many thanks in advance,
Tinh
So my question is: why are my views unloaded? How can I prevent them from being unloaded/destroyed?
Any input are welcome!
Many thanks in advance,
Tinh

