Friday, October 19, 2012

Usbong Update (Oct. 16, 2012): Fixed: HTML Tag Bug; Radio Button Links = OK

Hi everyone,
Here's the latest update on Usbong.

Tasks accomplished: 
  • fixed: html tag bug
    •  must use curly braces (i.e. { and }) instead of < and >
    • otherwise, kXML (the parser library we use) will throw an error
    • Sample:
      • {a href='https://sites.google.com/site/theusbongproject'}This is a sample html link{/a} 
        • will open the link using your device's browser
      • {u}this is underlined text{/u}
      • {indent}This text has been indented 
        • (i.e. preceded by 5 blank spaces)
        • this is custom made

  • added: radio button links (ala choose-your-own-adventure)
    • Sample: (the transition is the default)
<task-node name="link~1~There is a mango in front of you. What will you do?">
<task name="textDisplay~You eat the fruit. Delicious!~I will eat the fruit."></task>
<task name="textDisplay~You put the mango in your bag.~I will save it for later."></task>
<transition to="textDisplay~You eat the fruit. Delicious!~I will eat the fruit." name="Any"></transition>
</task-node>

* You may also get a copy of the_orange_problem.xml from the Usbong website.

I've also already uploaded the latest .apk onto Google Play.
It should be available within 24hrs.

The latest src code (and res folder) 
should also be already available
in Google Code.

More updates to come!

Hooray,
Mike