Re: [android-developers] Activity display over incoming call screen

2010-11-15 Thread mohammad Rukab
Thanks All , I resolved problem through work around solution.. Thank Again. On Mon, Nov 15, 2010 at 2:39 AM, Dianne Hackborn wrote: > On Sun, Nov 14, 2010 at 3:27 AM, mohammad Rukab > wrote: > >> This issue can resolve through put a delay before fire new activity, but >> the issue is why previ

Re: [android-developers] Activity display over incoming call screen

2010-11-14 Thread Dianne Hackborn
On Sun, Nov 14, 2010 at 3:27 AM, mohammad Rukab wrote: > This issue can resolve through put a delay before fire new activity, but > the issue is why previous activity (activity before a call come) rearranged > to be over call screen and before new activity > Well why do you think it would wo

Re: [android-developers] Activity display over incoming call screen

2010-11-14 Thread mohammad Rukab
Thanks Dianne, This issue can resolve through put a delay before fire new activity, but the issue is why previous activity (activity before a call come) rearranged to be over call screen and before new activity On Sun, Nov 14, 2010 at 5:35 AM, Dianne Hackborn wrote: > What you are trying to

Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread Dianne Hackborn
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

Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
Thank TreKing for your response, i run activity not from my application (BroadCastReciever) so has to se NEW_TASK On Sun, Nov 14, 2010 at 3:00 AM, TreKing wrote: > On Sat, Nov 13, 2010 at 9:46 AM, mohammad Rukab > wrote: >> >> Please an body have idea?? > > Don't use NEW_TASK if you don't want

Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
Tanks Gergely, yes exactly , that what i want, in fact i don't why my main activity cover call screen when i run new activity, if it was on screen before call come, but if it wasn't on screen every thing ok. On Sat, Nov 13, 2010 at 7:39 PM, Gergely Juhász wrote: > Just for clarify. > As i unders

Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread TreKing
On Sat, Nov 13, 2010 at 9:46 AM, mohammad Rukab wrote: > Please an body have idea?? Don't use NEW_TASK if you don't want a NEW_TASK. Use one of the other flags what will re-use your existing activity so there's only one (SINGLE_TOP perhaps). -

Re: [android-developers] Activity display over incoming call screen

2010-11-13 Thread Gergely Juhász
Just for clarify. As i understand you want the activity stack to be like this: (The first is the top of the stack.) 1. Cover activity- Your application 2. Incall activity - Another application 3. Another Activity - Your application I dont know. It is even possible to do? On 13 November 2

[android-developers] Activity display over incoming call screen

2010-11-13 Thread mohammad Rukab
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 com