how to make a call with a predetermined number or name?

2

I want to make a call and that the person who receives it appears another number to the current one, now that I only make the call, I need to pass as a parameter a name or number so that it appears to the person receiving the call, currently this is the code

Intent intent = new Intent();
intent.setData(Uri.parse("tel:1645"));
intent.setAction(intent.ACTION_CALL);
startActivity(intent);
    
asked by Heyner Marmol 04.10.2016 в 01:00
source

2 answers

1

After so much time I add the solution to the question.  Intent intent = new Intent ();

intent.setAction(intent.ACTION_CALL);
        intent.setData(Uri.parse("tel:600"));
        intent.putExtra("account", 0);
        startActivity(intent);

It should be noted that the device handled several telephone accounts and therefore the code did not work

    
answered by 23.02.2017 / 00:03
source
1

By means of this Intent, you can only dial the number you specify. What you want:

  

I need to pass as a parameter a name or number so that it appears   to the person receiving the call

via ACTION_CALL or another method you CAN NOT modify the data receives the person to receive the call.

    
answered by 04.10.2016 в 01:19