See http://www.appinventor.org/bookChapters/chapter16.pdf from FAQ Section: Books, Tips, Tutorials for AI2