Wednesday, April 3, 2013
Smamsung smart TV how to write a "Hello World" app
Step 1:
Create a new pplication:
Goto File > New Project > Select "Javascript Project".
Selecting project type of javascript means more controll over you app and code.
Step: 2:
Write this line in the body of the index.html:
<div id="outputDiv"></div>
We will populate our output from javascript and update this div. To make the body background color white write "background:#fff" in the body style as in the following figure.
Step: 3:
Write this line in the main.js file (The main.js file is inside the app/javascript folder)
Write this line in the main.js file (The main.js file is inside the app/javascript folder)
Step: 4
Run the application and press the Enter button from the remote conroller. You the word "Hello World" will be appended inside the "outputDiv" dive.
And its done!
Subscribe to:
Post Comments
(Atom)
The Rocket Droid Pc is a device that is aiming to be the most powerful portable mini Android dongle. It will plug directly into the HDMI port of any TV and instantly turn it into kick-butt SMART TV - bringing all the power of an Android Mobile Phone to your previously boring TV!
ReplyDeleteSMART TV