Added next button and timeout.
Merged Pull Request #2
Improved timeout.
Fixed button Home issue.

Added class Pair to replace android.util.Pair since this one is not
serializable.