Android BroadcasetReceiver

ci@clinux:~/mp_mtk$ adb -s QGAEFYAAOFN7PNOB logcat PhoneReceiver:e *:S
--------- beginning of system
--------- beginning of main
E/PhoneReceiver(16184): android.intent.action.PHONE_STATE
E/PhoneReceiver(16184): Intent { act=android.intent.action.PHONE_STATE flg=0x10 cmp=com.letv.android.recorder/.receiver.PhoneReceiver (has extras) }
E/PhoneReceiver(16184): phone:state:OFFHOOK ->mState:RECORDING
E/PhoneReceiver(16184): 1 flag=2 this:com.letv.android.recorder.receiver.PhoneReceiver@36ee1632thread:main
E/PhoneReceiver(16184): pauseRecoring



E/PhoneReceiver(16184): android.intent.action.PHONE_STATE
E/PhoneReceiver(16184): Intent { act=android.intent.action.PHONE_STATE flg=0x10 cmp=com.letv.android.recorder/.receiver.PhoneReceiver (has extras) }
E/PhoneReceiver(16184): phone:state:IDLE ->mState:PAUSED
E/PhoneReceiver(16184): 2 flag=1 this:com.letv.android.recorder.receiver.PhoneReceiver@3615f0dfthread:main

BroadcasetReciver onReceive运行在主线程中 

thread:main

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。