????8????в???4

????onConfigurationChanged-->

????onConfigurationChanged-->

???????

????1????????Activity??android:configChanges????????????μ????????????????к???????????Σ?????????????????

????2??????Activity??android:configChanges="orientation"???????????????μ????????????????к???????????????

????3??????Activity??android:configChanges="orientation|keyboardHidden"??????????????μ?????????????????????onConfigurationChanged????

??????????????Activity??????????

??????????????Activity???????????Toast??AlertDialog?????Activity??????????????и??

????Activity?????????HOME??(??????????????????)??onSaveInstanceState --> onPause --> onStop????ν?????????? onRestart -->onStart--->onResume

????BroadcastReceive?????????????????

???????????????????????????? onReceive() ?????????????????飬??ANR(Application No Response) ?????????????????

?????????????????????onReceive()??????????÷??????????????

????Service?????????????

?????3.2service?????????

????Service??????????????:?????onCreate()??????????onDestroy()????

????Service????????÷?????

????1>?????Context.startService()????????????Context.stopService()????

????2>?????Context.bindService()???????????????Context.unbindService()???

????service????????????????

?????????????startService ()??bindService()???Service????α????????????????????????????????????1?????????????????????????á??????ε???startService()??bindService()?????????δ???onCreate()????

????void onCreate()

?????????????stopService()??unbindService()??????????????????(?????????????????1??)???????onCreate()?????д????????

????void onDestroy()

???????startService()????????????

??????????????????????÷????????????????startService()??Intent???????????????Intent ????????????????????????????????????ε???startService()???????δ???onStart()????

????void onStart(Intent intent)