I am trying to bring the InCallScreen to the foreground when clicking
on a notification, and am having trouble figuring out how to do so.
My application is displaying information about the call and acts like
a dialog (where it is translucent, so you can still see whatever is
behind it).
While in a call, I frequently hit the home button, and pull up other
information (such as my contact list to read to someone the person's
info). I would like to then click on my notification bar icon and
pull up not only my activity, but also the in call phone screen. I
know the in call screen has it's own icon in the notification list,
but I would like to reduce the number of clicks to get back.
I have tried using:
Intent intent = new Intent (Intent.ACTION_CALL);
intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity (intent);
and I get an error saying that there isn't an activity found to handle
the request:
06-05 14:37:41.440: ERROR/WindowStats(785):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.CALL flags=0x10000000 }
However if I pass a phone number, it does pull up the screen
correctly:
Uri callUri = Uri.parse ("tel://12345678");
Intent intent= new Intent (Intent.ACTION_CALL, callUri);
intent.setFlags (Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity (intent);
The only problem with this method is that since I'm already in a call,
it is sending out a new call to put in three-way. This isn't what I
would like to do.
Using Intent.ACTION_DIAL bring up the last dialed numbers, and not the
current call.
Using Intent.ACTION_CALL_BUTTON brings up the number dial pad.
How can I bring the InCallScreen to the front?
Sincerely,
-Kitzy
--
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