I know how to make a call through code from android. We do something like this.
Intent callIntent = new Intent(Intent.ACTION_CALL);
callIntent.setData(Uri.parse("tel:"+1234567890));
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(callIntent);
but after executing this code the call is initiated but i don't know whether the call was successful or not and if not what was the error or problem.
While sending SMS through code from android we do something like this
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message,sentPIntent, deliveredPIntent);
And we get the message status by sending pending intents. Can we do something similar in case of calls as well so that i come to know whether the call was successful or else what was the error ?