I am sorry, but the same code doesn't run now.
I am testing on the emulator.  Can it be a timing issue?  if the
service is invoked before the incoming call dialog captures the focus,
it works because the activity is then on top of stack?



On Apr 21, 2:57 pm, Mohamed Amir <mohamed.a...@gmail.com> wrote:
> OK, sorry, Dianne.
> It works now.  I just did as you said, I am not sure why it wasn't
> working in the first place.
>
> Thank you Dianne.
>
> On Apr 21, 2:50 pm, Mohamed Amir <mohamed.a...@gmail.com> wrote:
>
> > Hi Dianne,
>
> > I have found this in the doc.
>
> >  when the activity is re-launched while at the top of the activity
> > stack instead of a new instance of the activity being started,
> > onNewIntent() will be called on the existing instance with the Intent
> > that was used to re-launch it.
>
> > on my case, the incoming call dialog is shown and hence I think the
> > activity isn't at the top of activity stack, you think this might be
> > the reason?
>
> > Is there a way that I close the activity and re-launch it from inside
> > the service?
>
> > On Apr 21, 2:22 pm, Mohamed Amir <mohamed.a...@gmail.com> wrote:
>
> > > Yes, I have set the activity android:launchMode="singleTop" in the
> > > manifest, but still in vain.
>
> > > I have put breakpoints in onCreate() and onNewIntent().
> > > onCreate is called only the first time, and onNewIntent is never
> > > called.
>
> > > On Apr 21, 12:37 am, Dianne Hackborn <hack...@android.com> wrote:
>
> > > > Did you try setting android:launchMode="singleTop" in your manifest?
>
> > > > On Mon, Apr 20, 2009 at 3:11 PM, Mohamed Amir 
> > > > <mohamed.a...@gmail.com>wrote:
>
> > > > > :-)
> > > > > Well, it's just a typo here but it is correct in the code I have
> > > > > tried.
>
> > > > > Thank you after all.
>
> > > > > On Apr 20, 10:14 pm, Marco Nelissen <marc...@android.com> wrote:
> > > > > > On Mon, Apr 20, 2009 at 12:15 PM, Mohamed Amir 
> > > > > > <mohamed.a...@gmail.com
> > > > > >wrote:
>
> > > > > > > OK Mark.
>
> > > > > > > I am trying to make an application that show the caller-ID when 
> > > > > > > there
> > > > > > > is an incoming call.
> > > > > > > And where there is another call, I wanna update the caller-ID 
> > > > > > > shown.
>
> > > > > > > I have tried OnNewIntent but this callback wasn't called.
>
> > > > > > It's onNewIntent() with a lowercase 'o'.
>
> > > > --
> > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to