add another activity with android:theme="@android:style/Theme.Dialog" to
test onPause method.