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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With