To initiate a call using the Intent which code you will write?

To initiate a call using the Intent which code you will write?



A) Intent intent = new Intent (Intent.ACTION_CALL)”);

startActivity(intent);

B) Intent intent = new Intent (Intent.ACTION_CALL, Uri.parse(“tel:9923----”));

startActivity(intent);

C) Intent intent = new Intent (Uri.parse(“tel:9923----”));

startActivity(intent);

D) All of the above.




Answer: B


Learn More :