Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Bring call in progress to front?

Tags:

java

android

I'm building an app for universal access, my app works in fullscreen with a custom dialer. So if users press home or back during a phone call I need to give them the opportunity to return the call somehow. (In fact I'm thinking about reopening the call in progress automatically if they leave).

I know how to start a call with a number but I don't know how to open the incall screen during a call, I tried doing an Intent.ACTION_CALL without a number but it initiates a second phone call on top of the other:

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

I think this should be doen with an intent or by simply bringing it to front. But I don't know how to do it. How can I reopen a call in progress programatically?

like image 468
lisovaccaro Avatar asked Dec 01 '25 04:12

lisovaccaro


1 Answers

if it's still relevant or for other people interested in this:

ACTION_CALL_BUTTON do exactly that.

if the call is in progress, it would bring it to the front, and if it's not, it would bring the call log.

http://developer.android.com/reference/android/content/Intent.html#ACTION_CALL_BUTTON

like image 112
Yaron Yosef Avatar answered Dec 02 '25 17:12

Yaron Yosef



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!