I'm creating an application where I need to dial phone numbers.  I am
starting the dialer like this:

Intent dial = new Intent(Intent.ACTION_CALL, Uri.parse("tel:123"));
startActivity(dial);

The dialer comes up and the phone dials the number.  Now, here's my
problem: At the end of the call I want to immediately return to my
Activity in my application.  However, what does happen is that at the
end of the call the call log is opened.  Only after pushing the back
button do I get back to my activity.  Is there any way to make the
dialer immediately return to my activity and bypass the call log?  I
don't want the users to have to push back to return to the
application.

I was thinking that maybe I could subscribe to the phone state events
and as soon as the phone goes into the idle state close the dialer
activity and bring my activity to the foreground.  However, I can't
seem to find any useful information on doing that.

As an alternative, is it possible to dial a number without leaving my
activity?  That would also work for me.

Any help would be much appreciated.  Thank you.

-Isaac

-- 
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

Reply via email to