Skip to main content

Title restart but xlet status is lost

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2010-12-01

I'm developing a xlet that need to execute the following steps: download the playlist from a server; start the newest playlist and continue to work with the xlet menu. All seems work, but when the title restart with the following lines ...
ServiceContextFactory factory = ServiceContextFactory.getInstance();
TitleContext titleContext = null;
try {
titleContext = (TitleContext) factory
Title title = (Title) titleContext.getService();
titleContext.start(title, true);
} catch (SecurityException e) {
Logger.debug("SecurityException: " + e.getMessage());
} catch (ServiceContextException e) {
Logger.debug("ServiceContextException: " + e.getMessage());
the playlist starts correctly, but it is in fullscreen, the xlet is destroyed and it doesn't restart, it continues to work downloading the video parts. I tried to kill also the thread that downloads the video from the server, but nothing is changed. How can I do to restore the status of the xlet after that title is restarted?
Thank you very much for your help,