0

What I'm wanna achieve is to create a button whenever there is an CALL_STATE_OFFHOOK (active call) phone call it can be clicked to open the native phone call application on the phone. So that user can go back to the call.

What I've tried :

 Intent i = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
 Intent i = new Intent(Intent.ACTION_VIEW, ContactsContract.Contacts.CONTENT_URI);
 Intent i = new Intent(Intent.ACTION_DIAL, null);
 Intent i = new Intent(Intent.ACTION_VIEW, CallLog.Calls.CONTENT_URI);
 Intent i = new Intent(Intent.ACTION_CALL_BUTTON);

and none of these can achieve my goal.

Is there any ways I could actually open the phone activity or phone intent etc. ?

Kara
  • 6,115
  • 16
  • 50
  • 57
  • you can find calllistner when phonecall is over then you can redirect phone activity EndCallListener callListener = new EndCallListener(); TelephonyManager mTM = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE); mTM.listen(callListener, PhoneStateListener.LISTEN_CALL_STATE); – dipali Feb 10 '14 at 10:07
  • please check this link. I hope its useful to you. [reference link][1] [1]: http://stackoverflow.com/questions/1556987/how-to-make-a-phone-call-in-android-and-come-back-to-my-activity-when-the-call-i – dipali Feb 10 '14 at 10:12
  • I know how to get back to my activity when the call is finished. what i'm wanna do is to get back to that phone call activity when the call is not finished. – user3292296 Feb 11 '14 at 01:27
  • there will be a button in my activity that allow user to click and get back to that phone call application. – user3292296 Feb 11 '14 at 01:45

0 Answers0