I have the following code :
public static void dialNumber(Context context, String phoneNumber)
{
_logger.info("Calling " + phoneNumber);
Intent intent = new Intent(ACTION_CALL, Uri.fromParts("tel", phoneNumber, null));
context.startActivity(intent);
}
This starts a call to the given phoneNumber. I want to put some logic when this call finishes. how can i do that. How to know if the call finishes. I tried using startActivityForResult, but i cant call this function on a Context.
Thanks