I can call some to with this code:
private void makePhoneCall(String number) {
try {
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:" + number));``
startActivity(intent);
} catch (Exception e) {
e.printStackTrace();
}
but I want to play something when somebody open to call. how can I do ?