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

你可能感兴趣的:(android)