Skip to content

Instantly share code, notes, and snippets.

@julianshen
Created May 1, 2011 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julianshen/950551 to your computer and use it in GitHub Desktop.
Save julianshen/950551 to your computer and use it in GitHub Desktop.
function getcontentview() {
return R.layout('main');
}
function oncreate() {
log("MyScript", "oncreate called");
textview = findview(R.id("mytext"));
textview.setText("Hello! Javascript!");
}
function onresume() {
log("MyScript", "onresume called");
}
function onpause() {
log("MyScript", "onpause called");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment