As we all know, android broadcast event can be registered to receive many of which broadcast receivers, for example, I signed up for a broadcast system calls, mute the first 10 seconds after handling system calls in onRecevie () where, however, the system comes also broadcast a call, it will trigger the MediaPlayer to play ringtones, so, I can not guarantee that whoever receives the broadcasting system calls, so sometimes appeared before the system comes with a broadcast receiver receives the broadcast (lead first play ringtone) Sometimes I registered a broadcast receiver receives the first broadcast (mute after 10 seconds to play ringtones). How to prevent this randomness there, so I never registered the first received broadcast radio?
PS: setting priorities does not seem to maximum use, there will be random, like, because I suspect the trigger MediaPlayer to play ringtones receiver also set the maximum priority.
Reply:
Principle can be statically registered receiver, when added in intent-filter android: priority to set a higher priority, the larger the number, priority
However, this player might like telephone system should be the highest priority, there may be a different phone system kernel has been modified have different effects.
Reply:
Two types of radio broadcasting is one ordinary fully asynchronous broadcast landlord ordered another set as long as the bigger priority on the line
Reply:
I am afraid not carefully Kane upstairs, I have said setting a high priority method is not used. I've set up the biggest!
Reply:
I heard someone say that it seems to be a dynamic set permissions at boot time code set about the highest authority
Reply:
Can specific?
Reply:
When you try to call, the incoming data to be deleted. When the system can not find the estimated first call system will not
Reply:
No, caller ringtones triggered when the first radio broadcast a call is received, the first treatment, the first ring.
Reply:
Can not. You did not carefully read the content. . .
Reply:
There is no corresponding application for permission?
Whether the type specified correctly receive the broadcast?
No comments:
Post a Comment