Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I not show the phone screen all the time when making a call?

I have written an application which include a service running in the background, and a GUI that includes (amongst other things) the ability to make a call to a predefined number. Now- when the user presses the button to make the call- the call is made OK- and the screen changes to the phone's GUI. I'd rather the app stays in view and the phone isn't shown at all really- but I can live with it briefly showing. However, to return to the application, the user must manually click the "back button£" on the phone. I want this to happen immediately the call is ringing if at all possible. I have tried using the PhoneStateListener- which I am already using for something else (in the service part of the app)- but can't seem to detect the call being made, and then show the main screen again.

Suggestions would be much appreciated! Many thanks in advance.

like image 254
Spike66 Avatar asked Oct 18 '12 11:10

Spike66


1 Answers

If you need such fine grained control over the call experience, why don't you just use Twilio Client?

http://www.twilio.com/client/mobile

This lets you control the entire voice experience.

like image 184
Joel Martinez Avatar answered Oct 07 '22 22:10

Joel Martinez