See if this helps > http://answers.yahoo.com/question/index?qid=20090911112601AAP7ER8
This is a Simple Dialog Demo.