HELLO WORLDThis uses one button that when pressed displays a Dialog Box with 'Hello World' message.
http://www.hypernextandroid.com/ScriptSampleImages/Hello_World_Card.pngCOMPARE WITH JAVALines of code (not counting empty lines and comments):-
HAC: 1
Java: 13
The Java version has more lines because it sets ups its display using code whereas HAC sets it up with is screen designer.
The Java version also needs an XML file to define its display.
http://developer.android.com/resources/tutorials/hello-world.htmlHOW TO1) Create a new projected called
Hello World.
1) On the card create a button.
2) Give the button some text
Hello using the Creator Properties toolbar -
Value tab.
3) Open the button's script and give it this code:-
Message 'Hello World'
NOTESThe title of the dialog box is always the same as the project, in this case 'Hello World'.
The message is the smaller 'Hello World' text below it.
DEVICE SCREEN SHOTThis a screen shot of it running on an Android G1
http://www.hypernextandroid.com/ScriptSampleImages/Hello_World.png