Reloading the application contents while developing for Samsung Smart TV

Samsung Smart TV

This article discusses about ways the developers can utilise to refresh the contents on the Samsung Smart TV application during development. Refreshing or restarting the application is done during it’s development to ensure that the updated code contents are reflected in the application. This applies not only to Samsung Smart TV based application development, but also to the development in any other platforms. Normally in Samsung Smart TV applications during development, the updated code changes can only be viewed after restarting the emulator once again, or rerunning the application connection when we are testing on the real television. There are two other ways to view the updated changes, so that the use does not have to restart the emulator or the application server again.

The two ways are as follows

  • By reloading the application from the emulator smart hub
  • By hitting refresh in the debug view

By reloading the application from the emulator smart hub

This is the simplest means by which the update code can be reflected in the application during development. To initiate this flow, all the user has to do is click the smart hub button in the remote (hardware or virtual). This will activate the smart hub. This will list out the recently developed applications for the smart tv (emulator), with the current application under development being selected. Press the enter or the middle key to relaunch the application. This will launch the application with the updated code. This will save the developer a lot of application development time, that is spent during the restart of the emulator.

Samsung Smart hub and center button

Samsung smart tv remote

By hitting refresh in the debug view

The Application Debug option will enable the developer to have a look at the running code and do various debugging tasks like the following

  • Setting execution breakpoints and inspecting the code run time values to detect logical errors in the code
  • Inspecting the memory usage of the application over time and hence finding out the chances of memory leaks.
  • Taking a look into the application storage.

The procedure to go into the debugging mode is explained by two of my following video tutorials.

Once you enter the debug mode hit the refresh (f5) button in the keyboard to reload your app. This will reload the application with the updated code contents.

Samsung Smart TV Debug View

Samsung Smart TV Debug View

So we have discussed two ways of refreshing the application for updating the modified code. We can use whatever way that suits us the best. To say it better, these are the two ways that I have tried out.

If you find any other ways to refresh the application without, restarting the emulator or the application server, you can post it in the comments section. Also for those of you who have tried out in Tvs can express your views also. All are welcome.

No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: