What you are trying to do is simply not going to work reliably. The incoming call broadcast is a broadcast, and at the same time you are handling it and doing something the system is in the process of showing the in-call screen. There is a race going on between you starting your activity and the in-call screen activity being started, and which gets there *second* (which is the the user will see barring some flicker) is effectively random.
On Sat, Nov 13, 2010 at 7:46 AM, mohammad Rukab <[email protected]>wrote: > Hello , > > i have problem when i start activity from incoming call > broadcastReciever, the problem is : > > when call is coming i start activity X with FLAG_ACTIVITY_NEW_TASK > flag, and it is work fine when my application is not on the screen. > > but if my application on the screen (activity Y) and call come, when > activity X called from braodcastReciver Activity Y cover screen over > incoming call screen then Actvity X display, so 2 activity become over > incoming call, although i just want activity X just display. > > Please an body have idea?? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

