Try this:
http://uk.answers.yahoo.com/question/index?qid=20100807043138AAwhnXQ
This is a Simple Dialog Demo.