I solved that issue using an delay before starting the activity thus getting it displayed ontop of the call screen. But then I had problems with my activity taking focus from the call screen. I ended up displaying a custom toast notification instead.
On Nov 14, 4:35 am, Dianne Hackborn <hack...@android.com> wrote: > 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 > <mohammad.ru...@gmail.com>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 android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs > > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en