I've got an application where I need to dial a phone number.  This is
how I'm starting the dialer:

int DIAL = 1;
Intent dial = new Intent(Intent.ACTION_CALL, Uri.parse("tel:5551212"));
startActivityForResult(dial, DIAL);

After the phone call is ended the dialer automatically goes to the
call log activity.  However, when the call is over I really want it to
just return to my activity.  I've tried creating a listener that
listens for the CALL_IDLE state and then invokes:

finishActivity(DIAL);

However, that has no effect.  The call log still comes up and sits
there until the back button is pushed.  I really need a way to either
return immediately from the dialer to my activity or else a way to
stop the call log activity so I can get back to my activity.

Thanks.

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