Android sendOrderedBroadcast takes too much time
<p>I am using <code>sendOrderedBroadcast</code> method this way, which is being listened by <code>MyReceiver</code> at the end.
Broadcasted intent does not have any large objects or data.
When it reaches to the <code>MyReceiver</code> at the end of broadcast, it some time takes just 20 milisecond and sometime take upto 3 second.</p>

<pre><code>Intent broadcastIntent = new Intent("android.intent.action.MYBROADCAST");
sendOrderedBroadcast(intent, PERMISSION, new MyReceiver(), null, Activity.RESULT_OK,str,null);

public void onReceive(Context context, Intent intent){
 // here it received late sometimes.

}
</code></pre>

<p>here almost 20 ms:</p>

<pre><code>12-06 15:25:16.897: V/MyBroadcaster(489): Broadcasting intent: Intent { act=android.intent.action.MYBROADCAST (has extras) }.
...
12-06 15:25:16.917: V/MyReceiver(489): onReceive: Intent { act=android.intent.action.MYBROADCAST (has extras) }
</code></pre>

<p>And here 3 second delay:</p>

<pre><code>12-02  14:08:32.277 PID=  498, TID=  498  MyBroadcaster Broadcasting intent: Intent { act=android.intent.action.MYBROADCAST (has extras) }.
...
12-02  14:08:35.210 PID=  498, TID=  498  MyReceiver doReceive: Intent { act=android.intent.action.MYBROADCAST (has extras) }
</code></pre>

<p>Can anyone tell me the reason.</p>

<p>I want to improve time taken in Intent routing.</p>

<p>is there nobody...who can answer on stackoverflow ? people only viewed...
Pllzz repy anybody</p>
