单项选择题

当活动失去焦点时调用方法是(),当获得焦点时调用的方法是()。

A.onStop();onStart()
B.onPause();onResume()
C.onCreate();onDestory()
D.onPause();onRestart()