Search code examples
javaandroidcall

How to make a call with a fake identifier?


I wish to make a call to the person who receives it appears another number to the current, only now I make the call, I need to pass as a parameter a name or number that appears to the person receiving the call

Intent intent = new Intent();
intent.setData(Uri.parse("tel:1645"));
intent.setAction(intent.ACTION_CALL);
startActivity(intent);

Solution

  • after so long 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 bills and therefore the code did not work